fix: format avante.nvim

This commit is contained in:
Ladas552 2025-08-10 16:44:15 +05:00
commit a1d1eb1375

View file

@ -5,7 +5,7 @@
in { in {
options.vim.assistant = { options.vim.assistant = {
avante-nvim = { avante-nvim = {
enable = mkEnableOption "complementary Neovim plugin for avante.nvim"; enable = mkEnableOption "Complementary Neovim plugin for avante.nvim";
setupOpts = mkPluginSetupOption "avante-nvim" { setupOpts = mkPluginSetupOption "avante-nvim" {
provider = mkOption { provider = mkOption {
type = nullOr str; type = nullOr str;
@ -76,7 +76,7 @@ in {
}; };
dual_boost = { dual_boost = {
enabled = mkEnableOption "dual_boost mode."; enabled = mkEnableOption "Dual_boost mode.";
first_provider = mkOption { first_provider = mkOption {
type = str; type = str;
@ -109,38 +109,38 @@ in {
behaviour = { behaviour = {
auto_suggestions = auto_suggestions =
mkEnableOption "auto suggestions."; mkEnableOption "Auto suggestions.";
auto_set_highlight_group = auto_set_highlight_group = mkOption {
mkEnableOption "automatically set the highlight group for the current line." type = true;
// {
default = true; default = true;
description = "Automatically set the highlight group for the current line.";
}; };
auto_set_keymaps = auto_set_keymaps = mkOption {
mkEnableOption "automatically set the keymap for the current line." type = bool;
// {
default = true; default = true;
description = "Automatically set the keymap for the current line.";
}; };
auto_apply_diff_after_generation = auto_apply_diff_after_generation =
mkEnableOption "automatically apply diff after LLM response."; mkEnableOption "Automatically apply diff after LLM response.";
support_paste_from_clipboard = mkEnableOption '' 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. This will be determined automatically based whether img-clip is available or not.
''; '';
minimize_diff = minimize_diff = mkOption {
mkEnableOption "remove unchanged lines when applying a code block." type = bool;
// {
default = true; default = true;
description = "Remove unchanged lines when applying a code block.";
}; };
enable_token_counting = enable_token_counting = mkOption {
mkEnableOption "token counting." type = bool;
// {
default = true; default = true;
description = "Token counting.";
}; };
enable_cursor_planning_mode = enable_cursor_planning_mode =
@ -188,13 +188,10 @@ in {
}; };
}; };
hints.enabled = hints.enabled = mkOption {
mkEnableOption "" type = bool;
// {
default = true; default = true;
description = '' description = "Whether to enable hints.";
Whether to enable hints.
'';
}; };
windows = { windows = {
@ -204,13 +201,10 @@ in {
description = "The position of the sidebar."; description = "The position of the sidebar.";
}; };
wrap = wrap = mkOption {
mkEnableOption "" type = bool;
// {
default = true; default = true;
description = '' description = "Similar to vim.o.wrap.";
similar to vim.o.wrap.
'';
}; };
width = mkOption { width = mkOption {
@ -223,7 +217,7 @@ in {
enabled = mkOption { enabled = mkOption {
type = bool; type = bool;
default = true; default = true;
description = "enable/disable the header."; description = "Enable the sidebar header.";
}; };
align = mkOption { align = mkOption {
@ -235,7 +229,7 @@ in {
rounded = mkOption { rounded = mkOption {
type = bool; type = bool;
default = true; default = true;
description = "Enable rounded sidebar header"; description = "Enable rounded sidebar header.";
}; };
}; };
@ -249,9 +243,7 @@ in {
height = mkOption { height = mkOption {
type = int; type = int;
default = 8; default = 8;
description = '' description = "Height of the input window in vertical layout.";
Height of the input window in vertical layout.
'';
}; };
}; };
@ -265,9 +257,7 @@ in {
start_insert = mkOption { start_insert = mkOption {
type = bool; type = bool;
default = true; default = true;
description = '' description = "Start insert mode when opening the edit window.";
Start insert mode when opening the edit window.
'';
}; };
}; };
@ -275,17 +265,13 @@ in {
floating = mkOption { floating = mkOption {
type = bool; type = bool;
default = false; default = false;
description = '' description = "Open the 'AvanteAsk' prompt in a floating window.";
Open the 'AvanteAsk' prompt in a floating window.
'';
}; };
start_insert = mkOption { start_insert = mkOption {
type = bool; type = bool;
default = true; default = true;
description = '' description = "Start insert mode when opening the ask window.";
Start insert mode when opening the ask window.
'';
}; };
border = mkOption { border = mkOption {
@ -303,9 +289,8 @@ in {
}; };
diff = { diff = {
autojump = autojump = mkOption {
mkEnableOption "" type = bool;
// {
default = true; default = true;
description = "Automatically jumps to the next change."; description = "Automatically jumps to the next change.";
}; };