mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 05:40:44 +00:00
fix: deprecated view.hide-root-folder opt
This commit is contained in:
parent
e4b18b3ae3
commit
e480be7ac5
3 changed files with 15 additions and 7 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue