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:
Johan Larsson 2025-01-08 15:22:48 +01:00 committed by nix-infra-bot
parent 092a46a1ca
commit 592e9eaff0
2 changed files with 81 additions and 53 deletions

View file

@ -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
'';
};
};
};
}