nix-community.nixvim/tests/test-sources/plugins/by-name/inc-rename/default.nix
Johan Larsson 592e9eaff0 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
2025-01-08 21:58:30 +00:00

37 lines
727 B
Nix

{
empty = {
plugins.inc-rename.enable = true;
};
defaults = {
plugins.inc-rename = {
enable = true;
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
'';
};
};
};
}