dev: rewrite icons section

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