From 51ae9913767528723397e1b227bd32a080058bb5 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sat, 27 Dec 2025 21:23:26 -0600 Subject: [PATCH] plugins/inc-rename: remove settingsOptions Tried setting up plugin, settingsOptions prevented a valid configuration. Removing options. --- plugins/by-name/inc-rename/default.nix | 48 +++----------------------- 1 file changed, 4 insertions(+), 44 deletions(-) diff --git a/plugins/by-name/inc-rename/default.nix b/plugins/by-name/inc-rename/default.nix index 4ef7fbc7..fee8e4cb 100644 --- a/plugins/by-name/inc-rename/default.nix +++ b/plugins/by-name/inc-rename/default.nix @@ -1,8 +1,4 @@ { lib, ... }: -let - inherit (lib) types; - inherit (lib.nixvim) defaultNullOpts; -in lib.nixvim.plugins.mkNeovimPlugin { name = "inc-rename"; moduleName = "inc_rename"; @@ -14,47 +10,11 @@ lib.nixvim.plugins.mkNeovimPlugin { maintainers = [ lib.maintainers.jolars ]; - settingsOptions = { - cmd_name = defaultNullOpts.mkStr "IncRename" "The name of the command."; - - hl_group = defaultNullOpts.mkStr "Substitute" '' - The highlight group used for highlighting the identifier's new name. - ''; - - preview_empty_name = defaultNullOpts.mkBool false '' - Whether an empty new name should be previewed; if false the command - preview will be cancelled instead. - ''; - - show_message = defaultNullOpts.mkBool true '' - Whether to display a `Renamed m instances in n files` message after a rename operation. - ''; - - save_in_cmdline_history = defaultNullOpts.mkBool true '' - Whether to save the `IncRename` command in the commandline history. Set to - false to prevent issues with navigating to older entries that may arise due to - the behavior of command preview). - ''; - - input_buffer_type = - defaultNullOpts.mkNullable (with types; either (enum [ "dressing" ]) rawLua) null - '' - The type of the external input buffer to use. - ''; - - post_hook = defaultNullOpts.mkRaw null '' - Callback to run after renaming, receives the result table (from LSP - handler) as an argument. - ''; - }; - settingsExample = { - input_buffer_type = "dressing"; + cmd_name = "IncRename"; + hl_group = "Substitute"; + input_buffer_type = "snacks"; preview_empty_name = false; - show_message.__raw = '' - function(msg) - vim.notify(msg, vim.log.levels.INFO, { title = "Rename" }) - end - ''; + show_message = true; }; }