mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-05 18:01:32 +00:00
Merge a7e5414be5
into f5c91f6a66
This commit is contained in:
commit
6078451da8
1 changed files with 44 additions and 59 deletions
|
@ -76,7 +76,7 @@ in {
|
|||
};
|
||||
|
||||
dual_boost = {
|
||||
enabled = mkEnableOption "dual_boost mode.";
|
||||
enabled = mkEnableOption "`dual_boost` mode.";
|
||||
|
||||
first_provider = mkOption {
|
||||
type = str;
|
||||
|
@ -111,36 +111,36 @@ in {
|
|||
auto_suggestions =
|
||||
mkEnableOption "auto suggestions.";
|
||||
|
||||
auto_set_highlight_group =
|
||||
mkEnableOption "automatically set the highlight group for the current line."
|
||||
// {
|
||||
auto_set_highlight_group = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
description = "Whether to automatically set the highlight group for the current line.";
|
||||
};
|
||||
|
||||
auto_set_keymaps =
|
||||
mkEnableOption "automatically set the keymap for the current line."
|
||||
// {
|
||||
auto_set_keymaps = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
description = "Whether to automatically set the keymap for the current line.";
|
||||
};
|
||||
|
||||
auto_apply_diff_after_generation =
|
||||
mkEnableOption "automatically apply diff after LLM response.";
|
||||
|
||||
support_paste_from_clipboard = mkEnableOption ''
|
||||
pasting image from clipboard.
|
||||
This will be determined automatically based whether img-clip is available or not.
|
||||
support 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."
|
||||
// {
|
||||
minimize_diff = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
description = "Whether to remove unchanged lines when applying a code block.";
|
||||
};
|
||||
|
||||
enable_token_counting =
|
||||
mkEnableOption "token counting."
|
||||
// {
|
||||
enable_token_counting = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
description = "Whether to enable token counting.";
|
||||
};
|
||||
|
||||
enable_cursor_planning_mode =
|
||||
|
@ -188,13 +188,10 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
hints.enabled =
|
||||
mkEnableOption ""
|
||||
// {
|
||||
hints.enabled = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
description = ''
|
||||
Whether to enable hints.
|
||||
'';
|
||||
description = "Whether to enable hints.";
|
||||
};
|
||||
|
||||
windows = {
|
||||
|
@ -204,13 +201,10 @@ in {
|
|||
description = "The position of the sidebar.";
|
||||
};
|
||||
|
||||
wrap =
|
||||
mkEnableOption ""
|
||||
// {
|
||||
wrap = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
description = ''
|
||||
similar to vim.o.wrap.
|
||||
'';
|
||||
description = "Whether to enable wrap, similar to vim.o.wrap.";
|
||||
};
|
||||
|
||||
width = mkOption {
|
||||
|
@ -223,7 +217,7 @@ in {
|
|||
enabled = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
description = "enable/disable the header.";
|
||||
description = "Whether to enable the sidebar header.";
|
||||
};
|
||||
|
||||
align = mkOption {
|
||||
|
@ -235,7 +229,7 @@ in {
|
|||
rounded = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
description = "Enable rounded sidebar header";
|
||||
description = "Whether to 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,11 +289,10 @@ in {
|
|||
};
|
||||
|
||||
diff = {
|
||||
autojump =
|
||||
mkEnableOption ""
|
||||
// {
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue