fix: deprecated view.hide-root-folder opt

This commit is contained in:
NotAShelf 2023-04-15 11:29:49 +03:00
parent e4b18b3ae3
commit e480be7ac5
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
3 changed files with 15 additions and 7 deletions

View file

@ -88,6 +88,9 @@ inputs: let
vim.filetree = { vim.filetree = {
nvimTreeLua = { nvimTreeLua = {
enable = true; enable = true;
renderer = {
rootFolderLabel = null;
};
view = { view = {
width = 25; width = 25;
}; };

View file

@ -80,7 +80,6 @@ in {
width = ${toString cfg.view.width}, width = ${toString cfg.view.width},
side = ${"'" + cfg.view.side + "'"}, side = ${"'" + cfg.view.side + "'"},
adaptive_size = ${boolToString cfg.view.adaptiveSize}, adaptive_size = ${boolToString cfg.view.adaptiveSize},
hide_root_folder = ${boolToString cfg.view.hideRootFolder},
}, },
git = { git = {
enable = ${boolToString cfg.git.enable}, enable = ${boolToString cfg.git.enable},
@ -119,6 +118,12 @@ in {
-- TODO: those two -- TODO: those two
add_trailing = ${boolToString cfg.renderer.trailingSlash}, add_trailing = ${boolToString cfg.renderer.trailingSlash},
group_empty = ${boolToString cfg.renderer.groupEmptyFolders}, group_empty = ${boolToString cfg.renderer.groupEmptyFolders},
rootFolderLabel = ${
if cfg.renderer.rootFolderLabel == null
then "false"
else "''${toString cfg.rootFolderLabel}''"
},
}, },
system_open = { system_open = {

View file

@ -160,12 +160,6 @@ with builtins; {
description = "Width of the tree in charecters"; description = "Width of the tree in charecters";
type = types.int; type = types.int;
}; };
hideRootFolder = mkOption {
default = true;
description = "Hide the root folder";
type = types.bool;
};
}; };
git = { git = {
@ -282,6 +276,12 @@ with builtins; {
type = types.bool; type = types.bool;
}; };
rootFolderLabel = mkOption {
default = null;
description = "Root folder label. Set null to disable";
type = with types; nullOr str;
};
icons = { icons = {
show = { show = {
file = mkOption { file = mkOption {