mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 01:04:34 +02:00
plugins/inc-rename: convert to mkNeovimPlugin and add option
Add example Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> Add example to test as well
This commit is contained in:
parent
092a46a1ca
commit
592e9eaff0
2 changed files with 81 additions and 53 deletions
|
@ -6,12 +6,32 @@
|
|||
defaults = {
|
||||
plugins.inc-rename = {
|
||||
enable = true;
|
||||
cmdName = "IncRename";
|
||||
hlGroup = "Substitute";
|
||||
previewEmptyName = false;
|
||||
showMessage = true;
|
||||
inputBufferType = null;
|
||||
postHook = null;
|
||||
|
||||
settings = {
|
||||
cmd_name = "IncRename";
|
||||
hl_group = "Substitute";
|
||||
preview_empty_name = false;
|
||||
show_message = true;
|
||||
save_in_cmdline_history = true;
|
||||
input_buffer_type = null;
|
||||
post_hook = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.inc-rename = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
input_buffer_type = "dressing";
|
||||
preview_empty_name = false;
|
||||
show_message.__raw = ''
|
||||
function(msg)
|
||||
vim.notify(msg, vim.log.levels.INFO, { title = "Rename" })
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue