mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +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 = {
|
||||
nvimTreeLua = {
|
||||
enable = true;
|
||||
renderer = {
|
||||
rootFolderLabel = null;
|
||||
};
|
||||
view = {
|
||||
width = 25;
|
||||
};
|
||||
|
|
|
@ -80,7 +80,6 @@ in {
|
|||
width = ${toString cfg.view.width},
|
||||
side = ${"'" + cfg.view.side + "'"},
|
||||
adaptive_size = ${boolToString cfg.view.adaptiveSize},
|
||||
hide_root_folder = ${boolToString cfg.view.hideRootFolder},
|
||||
},
|
||||
git = {
|
||||
enable = ${boolToString cfg.git.enable},
|
||||
|
@ -119,6 +118,12 @@ in {
|
|||
-- TODO: those two
|
||||
add_trailing = ${boolToString cfg.renderer.trailingSlash},
|
||||
group_empty = ${boolToString cfg.renderer.groupEmptyFolders},
|
||||
|
||||
rootFolderLabel = ${
|
||||
if cfg.renderer.rootFolderLabel == null
|
||||
then "false"
|
||||
else "''${toString cfg.rootFolderLabel}''"
|
||||
},
|
||||
},
|
||||
|
||||
system_open = {
|
||||
|
|
|
@ -160,12 +160,6 @@ with builtins; {
|
|||
description = "Width of the tree in charecters";
|
||||
type = types.int;
|
||||
};
|
||||
|
||||
hideRootFolder = mkOption {
|
||||
default = true;
|
||||
description = "Hide the root folder";
|
||||
type = types.bool;
|
||||
};
|
||||
};
|
||||
|
||||
git = {
|
||||
|
@ -282,6 +276,12 @@ with builtins; {
|
|||
type = types.bool;
|
||||
};
|
||||
|
||||
rootFolderLabel = mkOption {
|
||||
default = null;
|
||||
description = "Root folder label. Set null to disable";
|
||||
type = with types; nullOr str;
|
||||
};
|
||||
|
||||
icons = {
|
||||
show = {
|
||||
file = mkOption {
|
||||
|
|
Loading…
Reference in a new issue