mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
fix(nvimtree): errors in refactor
This commit is contained in:
parent
5d8eb192d7
commit
29f78f7827
1 changed files with 11 additions and 7 deletions
|
@ -4,6 +4,7 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.options) mkEnableOption mkOption literalExpression;
|
inherit (lib.options) mkEnableOption mkOption literalExpression;
|
||||||
|
inherit (lib.generators) mkLuaInline;
|
||||||
inherit (lib.types) nullOr str bool int submodule listOf enum oneOf attrs addCheck;
|
inherit (lib.types) nullOr str bool int submodule listOf enum oneOf attrs addCheck;
|
||||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||||
in {
|
in {
|
||||||
|
@ -46,7 +47,7 @@ in {
|
||||||
type = bool;
|
type = bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
autoreload_on_write = mkOption {
|
auto_reload_on_write = mkOption {
|
||||||
default = true;
|
default = true;
|
||||||
description = "Auto reload tree on write";
|
description = "Auto reload tree on write";
|
||||||
type = bool;
|
type = bool;
|
||||||
|
@ -146,7 +147,7 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
reload_on_buf_enter = mkOption {
|
reload_on_bufenter = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
type = bool;
|
type = bool;
|
||||||
description = "Automatically reloads the tree on `BufEnter` nvim-tree.";
|
description = "Automatically reloads the tree on `BufEnter` nvim-tree.";
|
||||||
|
@ -266,12 +267,14 @@ in {
|
||||||
description = "Minimum severity.";
|
description = "Minimum severity.";
|
||||||
type = enum ["HINT" "INFO" "WARNING" "ERROR"];
|
type = enum ["HINT" "INFO" "WARNING" "ERROR"];
|
||||||
default = "HINT";
|
default = "HINT";
|
||||||
|
apply = x: mkLuaInline "vim.diagnostic.severity.${x}";
|
||||||
};
|
};
|
||||||
|
|
||||||
max = mkOption {
|
max = mkOption {
|
||||||
description = "Maximum severity.";
|
description = "Maximum severity.";
|
||||||
type = enum ["HINT" "INFO" "WARNING" "ERROR"];
|
type = enum ["HINT" "INFO" "WARNING" "ERROR"];
|
||||||
default = "ERROR";
|
default = "ERROR";
|
||||||
|
apply = x: mkLuaInline "vim.diagnostic.severity.${x}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -372,7 +375,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
selectPrompts = mkEnableOption ''
|
select_prompts = mkEnableOption ''
|
||||||
Use `vim.ui.select` style prompts. Necessary when using a UI prompt decorator such as dressing.nvim or telescope-ui-select.nvim
|
Use `vim.ui.select` style prompts. Necessary when using a UI prompt decorator such as dressing.nvim or telescope-ui-select.nvim
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -713,12 +716,12 @@ in {
|
||||||
default = {
|
default = {
|
||||||
default = "";
|
default = "";
|
||||||
open = "";
|
open = "";
|
||||||
arrowOpen = "";
|
arrow_open = "";
|
||||||
arrowClosed = "";
|
arrow_closed = "";
|
||||||
empty = "";
|
empty = "";
|
||||||
emptyOpen = "";
|
empty_open = "";
|
||||||
symlink = "";
|
symlink = "";
|
||||||
symlinkOpen = "";
|
symlink_open = "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1066,6 +1069,7 @@ in {
|
||||||
type = enum ["ERROR" "WARNING" "INFO" "DEBUG"];
|
type = enum ["ERROR" "WARNING" "INFO" "DEBUG"];
|
||||||
description = "Specify minimum notification level, uses the values from `vim.log.levels`";
|
description = "Specify minimum notification level, uses the values from `vim.log.levels`";
|
||||||
default = "INFO";
|
default = "INFO";
|
||||||
|
apply = x: mkLuaInline "vim.log.levels.${x}";
|
||||||
};
|
};
|
||||||
|
|
||||||
absolute_path = mkOption {
|
absolute_path = mkOption {
|
||||||
|
|
Loading…
Reference in a new issue