dev: rewrite icons section

This commit is contained in:
raf 2023-07-30 14:29:34 +03:00
parent 897f7ce746
commit 05f3c653bf
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
2 changed files with 28 additions and 29 deletions

View file

@ -11,7 +11,7 @@ with builtins; {
mappings = {
toggle = mkOption {
type = types.nullOr types.str;
default = "<C-n>";
default = "<leader>t";
description = "Toggle NvimTree";
};
refresh = mkOption {
@ -95,7 +95,7 @@ with builtins; {
syncRootWithCwd = mkOption {
type = types.bool;
default = true;
default = false;
description = ''
Changes the tree root directory on `DirChanged` and refreshes the tree.
Only relevant when `updateFocusedFile.updateRoot` is `true`
@ -194,9 +194,11 @@ with builtins; {
Note that the modified sign will take precedence over the diagnostics signs.
'';
default = {
enable = false;
debounceDelay = 50;
showOnDirs = false;
showOnOpenDirs = true;
icons = {
hint = "";
info = "";
@ -212,6 +214,7 @@ with builtins; {
type = types.submodule {
options = {
enable = mkEnableOption "diagnostics";
debounceDelay = mkOption {
description = "Idle milliseconds between diagnostic event and update.";
type = types.int;
@ -246,9 +249,7 @@ with builtins; {
};
};
severity = mkOption {
type = types.submodule {
options = {
severity = {
min = mkOption {
description = "Minimum severity.";
type = types.enum ["HINT" "INFO" "WARNING" "ERROR"];
@ -262,8 +263,6 @@ with builtins; {
};
};
};
};
};
git = {
enable = mkEnableOption "Git integration with icons and colors.";