mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 09:48:42 +02:00
nvim-tree: remove deprecated 'hideRootFolder' option (#623)
* nvim-tree: remove deprecated 'hideRootFolder' option also adds missing option to specify boolean for 'rootFolderLabel' * nvim-tree: marks 'hideRootFolder' as deprecated
This commit is contained in:
parent
73f21c063d
commit
a0c35acab5
2 changed files with 9 additions and 7 deletions
|
@ -30,6 +30,12 @@ with lib; let
|
|||
They will be overridden to fit the file_popup content.
|
||||
'';
|
||||
in {
|
||||
imports = [
|
||||
(
|
||||
mkRemovedOptionModule ["plugins" "nvim-tree" "view" "hideRootFolder"]
|
||||
"Set `plugins.nvim-tree.renderer.rootFolderLabel` to `false` to hide the root folder."
|
||||
)
|
||||
];
|
||||
options.plugins.nvim-tree =
|
||||
helpers.extraOptionsOptions
|
||||
// {
|
||||
|
@ -365,10 +371,6 @@ in {
|
|||
Increase if you experience performance issues around screen refresh.
|
||||
'';
|
||||
|
||||
hideRootFolder = helpers.defaultNullOpts.mkBool false ''
|
||||
Hide the path of the current working directory on top of the tree.
|
||||
'';
|
||||
|
||||
width =
|
||||
helpers.defaultNullOpts.mkNullable
|
||||
(types.oneOf [
|
||||
|
@ -471,7 +473,7 @@ in {
|
|||
rootFolderLabel =
|
||||
helpers.defaultNullOpts.mkNullable
|
||||
# Type
|
||||
(types.either types.str helpers.rawType)
|
||||
(with types; oneOf [str bool helpers.rawType])
|
||||
# Default
|
||||
":~:s?$?/..?"
|
||||
# Description
|
||||
|
@ -479,6 +481,8 @@ in {
|
|||
In what format to show root folder. See `:help filename-modifiers` for available `string`
|
||||
options.
|
||||
|
||||
Set to `false` to hide the root folder.
|
||||
|
||||
This can also be a `function(root_cwd)` which is passed the absolute path of the root folder
|
||||
and should return a string.
|
||||
e.g.
|
||||
|
@ -949,7 +953,6 @@ in {
|
|||
centralize_selection = centralizeSelection;
|
||||
inherit cursorline;
|
||||
debounce_delay = debounceDelay;
|
||||
hide_root_folder = hideRootFolder;
|
||||
inherit width;
|
||||
inherit side;
|
||||
preserve_window_proportions = preserveWindowProportions;
|
||||
|
|
|
@ -79,7 +79,6 @@
|
|||
centralizeSelection = false;
|
||||
cursorline = true;
|
||||
debounceDelay = 15;
|
||||
hideRootFolder = false;
|
||||
width = {
|
||||
min = 30;
|
||||
max = -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue