From a1d1eb1375974b5f77800a6e387489fbfc4c01c7 Mon Sep 17 00:00:00 2001 From: Ladas552 Date: Sun, 10 Aug 2025 16:44:15 +0500 Subject: [PATCH 1/6] fix: format avante.nvim --- .../plugins/assistant/avante/avante-nvim.nix | 107 ++++++++---------- 1 file changed, 46 insertions(+), 61 deletions(-) diff --git a/modules/plugins/assistant/avante/avante-nvim.nix b/modules/plugins/assistant/avante/avante-nvim.nix index 8dfa31fc..18039dca 100644 --- a/modules/plugins/assistant/avante/avante-nvim.nix +++ b/modules/plugins/assistant/avante/avante-nvim.nix @@ -5,7 +5,7 @@ in { options.vim.assistant = { avante-nvim = { - enable = mkEnableOption "complementary Neovim plugin for avante.nvim"; + enable = mkEnableOption "Complementary Neovim plugin for avante.nvim"; setupOpts = mkPluginSetupOption "avante-nvim" { provider = mkOption { type = nullOr str; @@ -76,7 +76,7 @@ in { }; dual_boost = { - enabled = mkEnableOption "dual_boost mode."; + enabled = mkEnableOption "Dual_boost mode."; first_provider = mkOption { type = str; @@ -109,39 +109,39 @@ in { behaviour = { auto_suggestions = - mkEnableOption "auto suggestions."; + mkEnableOption "Auto suggestions."; - auto_set_highlight_group = - mkEnableOption "automatically set the highlight group for the current line." - // { - default = true; - }; + auto_set_highlight_group = mkOption { + type = true; + default = true; + description = "Automatically set the highlight group for the current line."; + }; - auto_set_keymaps = - mkEnableOption "automatically set the keymap for the current line." - // { - default = true; - }; + auto_set_keymaps = mkOption { + type = bool; + default = true; + description = "Automatically set the keymap for the current line."; + }; auto_apply_diff_after_generation = - mkEnableOption "automatically apply diff after LLM response."; + mkEnableOption "Automatically apply diff after LLM response."; support_paste_from_clipboard = mkEnableOption '' - pasting image from clipboard. + Pasting image from clipboard. This will be determined automatically based whether img-clip is available or not. ''; - minimize_diff = - mkEnableOption "remove unchanged lines when applying a code block." - // { - default = true; - }; + minimize_diff = mkOption { + type = bool; + default = true; + description = "Remove unchanged lines when applying a code block."; + }; - enable_token_counting = - mkEnableOption "token counting." - // { - default = true; - }; + enable_token_counting = mkOption { + type = bool; + default = true; + description = "Token counting."; + }; enable_cursor_planning_mode = mkEnableOption "Cursor Planning Mode."; @@ -188,14 +188,11 @@ in { }; }; - hints.enabled = - mkEnableOption "" - // { - default = true; - description = '' - Whether to enable hints. - ''; - }; + hints.enabled = mkOption { + type = bool; + default = true; + description = "Whether to enable hints."; + }; windows = { position = mkOption { @@ -204,14 +201,11 @@ in { description = "The position of the sidebar."; }; - wrap = - mkEnableOption "" - // { - default = true; - description = '' - similar to vim.o.wrap. - ''; - }; + wrap = mkOption { + type = bool; + default = true; + description = "Similar to vim.o.wrap."; + }; width = mkOption { type = int; @@ -223,7 +217,7 @@ in { enabled = mkOption { type = bool; default = true; - description = "enable/disable the header."; + description = "Enable the sidebar header."; }; align = mkOption { @@ -235,7 +229,7 @@ in { rounded = mkOption { type = bool; default = true; - description = "Enable rounded sidebar header"; + description = "Enable rounded sidebar header."; }; }; @@ -249,9 +243,7 @@ in { height = mkOption { type = int; default = 8; - description = '' - Height of the input window in vertical layout. - ''; + description = "Height of the input window in vertical layout."; }; }; @@ -265,9 +257,7 @@ in { start_insert = mkOption { type = bool; default = true; - description = '' - Start insert mode when opening the edit window. - ''; + description = "Start insert mode when opening the edit window."; }; }; @@ -275,17 +265,13 @@ in { floating = mkOption { type = bool; default = false; - description = '' - Open the 'AvanteAsk' prompt in a floating window. - ''; + description = "Open the 'AvanteAsk' prompt in a floating window."; }; start_insert = mkOption { type = bool; default = true; - description = '' - Start insert mode when opening the ask window. - ''; + description = "Start insert mode when opening the ask window."; }; border = mkOption { @@ -303,12 +289,11 @@ in { }; diff = { - autojump = - mkEnableOption "" - // { - default = true; - description = "Automatically jumps to the next change."; - }; + autojump = mkOption { + type = bool; + default = true; + description = "Automatically jumps to the next change."; + }; override_timeoutlen = mkOption { type = int; From b82772b45c762c38a51738390d32d5c5eda41f9d Mon Sep 17 00:00:00 2001 From: Ladas552 Date: Sun, 10 Aug 2025 17:29:38 +0500 Subject: [PATCH 2/6] fix: wrong type --- modules/plugins/assistant/avante/avante-nvim.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/plugins/assistant/avante/avante-nvim.nix b/modules/plugins/assistant/avante/avante-nvim.nix index 18039dca..10a57273 100644 --- a/modules/plugins/assistant/avante/avante-nvim.nix +++ b/modules/plugins/assistant/avante/avante-nvim.nix @@ -112,7 +112,7 @@ in { mkEnableOption "Auto suggestions."; auto_set_highlight_group = mkOption { - type = true; + type = bool; default = true; description = "Automatically set the highlight group for the current line."; }; From ae4698ca35c48d98376d0897f59b33f76ca90d63 Mon Sep 17 00:00:00 2001 From: Ladas552 Date: Sun, 10 Aug 2025 18:30:25 +0500 Subject: [PATCH 3/6] fix: honor prepended Whether to enable --- modules/plugins/assistant/avante/avante-nvim.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/plugins/assistant/avante/avante-nvim.nix b/modules/plugins/assistant/avante/avante-nvim.nix index 10a57273..f14d351f 100644 --- a/modules/plugins/assistant/avante/avante-nvim.nix +++ b/modules/plugins/assistant/avante/avante-nvim.nix @@ -5,7 +5,7 @@ in { options.vim.assistant = { avante-nvim = { - enable = mkEnableOption "Complementary Neovim plugin for avante.nvim"; + enable = mkEnableOption "complementary Neovim plugin for avante.nvim"; setupOpts = mkPluginSetupOption "avante-nvim" { provider = mkOption { type = nullOr str; @@ -109,7 +109,7 @@ in { behaviour = { auto_suggestions = - mkEnableOption "Auto suggestions."; + mkEnableOption "auto suggestions."; auto_set_highlight_group = mkOption { type = bool; @@ -124,10 +124,10 @@ in { }; auto_apply_diff_after_generation = - mkEnableOption "Automatically apply diff after LLM response."; + mkEnableOption "automatically apply diff after LLM response."; support_paste_from_clipboard = mkEnableOption '' - Pasting image from clipboard. + pasting image from clipboard. This will be determined automatically based whether img-clip is available or not. ''; From a8ac4e959aaf1bccc672ffdb123c8581b9abf72a Mon Sep 17 00:00:00 2001 From: Ladas552 Date: Sun, 10 Aug 2025 18:33:04 +0500 Subject: [PATCH 4/6] fix: honor techincal term capitalization --- modules/plugins/assistant/avante/avante-nvim.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plugins/assistant/avante/avante-nvim.nix b/modules/plugins/assistant/avante/avante-nvim.nix index f14d351f..442089ae 100644 --- a/modules/plugins/assistant/avante/avante-nvim.nix +++ b/modules/plugins/assistant/avante/avante-nvim.nix @@ -76,7 +76,7 @@ in { }; dual_boost = { - enabled = mkEnableOption "Dual_boost mode."; + enabled = mkEnableOption "dual_boost mode."; first_provider = mkOption { type = str; @@ -127,7 +127,7 @@ in { mkEnableOption "automatically apply diff after LLM response."; support_paste_from_clipboard = mkEnableOption '' - pasting image from clipboard. + support pasting image from clipboard. This will be determined automatically based whether img-clip is available or not. ''; From 2330091cead19ad406799a359abf11946f8916f9 Mon Sep 17 00:00:00 2001 From: Ladas552 Date: Sun, 10 Aug 2025 21:09:09 +0500 Subject: [PATCH 5/6] fix: descriptions fit into documentations standards --- .../plugins/assistant/avante/avante-nvim.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/plugins/assistant/avante/avante-nvim.nix b/modules/plugins/assistant/avante/avante-nvim.nix index 442089ae..51ec59ab 100644 --- a/modules/plugins/assistant/avante/avante-nvim.nix +++ b/modules/plugins/assistant/avante/avante-nvim.nix @@ -114,13 +114,13 @@ in { auto_set_highlight_group = mkOption { type = bool; default = true; - description = "Automatically set the highlight group for the current line."; + description = "Whether to automatically set the highlight group for the current line."; }; auto_set_keymaps = mkOption { type = bool; default = true; - description = "Automatically set the keymap for the current line."; + description = "Whether to automatically set the keymap for the current line."; }; auto_apply_diff_after_generation = @@ -128,19 +128,19 @@ in { support_paste_from_clipboard = mkEnableOption '' support pasting image from clipboard. - This will be determined automatically based whether img-clip is available or not. + This will be determined automatically based whether img-clip is available or not ''; minimize_diff = mkOption { type = bool; default = true; - description = "Remove unchanged lines when applying a code block."; + description = "Whether to remove unchanged lines when applying a code block."; }; enable_token_counting = mkOption { type = bool; default = true; - description = "Token counting."; + description = "Whether to enable token counting."; }; enable_cursor_planning_mode = @@ -204,7 +204,7 @@ in { wrap = mkOption { type = bool; default = true; - description = "Similar to vim.o.wrap."; + description = "Whether to enable wrap, similar to vim.o.wrap."; }; width = mkOption { @@ -217,7 +217,7 @@ in { enabled = mkOption { type = bool; default = true; - description = "Enable the sidebar header."; + description = "Whether to enable the sidebar header."; }; align = mkOption { @@ -229,7 +229,7 @@ in { rounded = mkOption { type = bool; default = true; - description = "Enable rounded sidebar header."; + description = "Whether to enable rounded sidebar header."; }; }; @@ -292,7 +292,7 @@ in { autojump = mkOption { type = bool; default = true; - description = "Automatically jumps to the next change."; + description = "Whether to automatically jump to the next change."; }; override_timeoutlen = mkOption { From a7e5414be58f8d8a4a537750e2eb831f7233ab41 Mon Sep 17 00:00:00 2001 From: Ladas552 Date: Sun, 10 Aug 2025 21:28:10 +0500 Subject: [PATCH 6/6] fix: use inline code --- modules/plugins/assistant/avante/avante-nvim.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/plugins/assistant/avante/avante-nvim.nix b/modules/plugins/assistant/avante/avante-nvim.nix index 51ec59ab..7105be4c 100644 --- a/modules/plugins/assistant/avante/avante-nvim.nix +++ b/modules/plugins/assistant/avante/avante-nvim.nix @@ -76,7 +76,7 @@ in { }; dual_boost = { - enabled = mkEnableOption "dual_boost mode."; + enabled = mkEnableOption "`dual_boost` mode."; first_provider = mkOption { type = str;