Skip to content

Commit 07eb5b4

Browse files
authored
docs: notify deprecated hide_root_folder (#2431)
1 parent d49a284 commit 07eb5b4

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

doc/nvim-tree-lua.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ Following is the default configuration. See |nvim-tree-opts| for details.
356356
centralize_selection = false,
357357
cursorline = true,
358358
debounce_delay = 15,
359-
hide_root_folder = false,
360359
side = "left",
361360
preserve_window_proportions = false,
362361
number = false,
@@ -707,11 +706,6 @@ Idle milliseconds before some reload / refresh operations.
707706
Increase if you experience performance issues around screen refresh.
708707
Type: `number`, Default: `15` (ms)
709708

710-
*nvim-tree.view.hide_root_folder*
711-
Deprecated: please set |nvim-tree.renderer.root_folder_label| to `false`.
712-
Hide the path of the current working directory on top of the tree.
713-
Type: `boolean`, Default: `false`
714-
715709
*nvim-tree.view.side*
716710
Side of the tree, can be `"left"`, `"right"`.
717711
Type: `string`, Default: `"left"`

lua/nvim-tree.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,6 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
385385
centralize_selection = false,
386386
cursorline = true,
387387
debounce_delay = 15,
388-
hide_root_folder = false,
389388
side = "left",
390389
preserve_window_proportions = false,
391390
number = false,

lua/nvim-tree/view.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ function M.setup(opts)
513513
M.View.centralize_selection = options.centralize_selection
514514
M.View.side = (options.side == "right") and "right" or "left"
515515
M.View.height = options.height
516-
M.View.hide_root_folder = options.hide_root_folder or opts.renderer.root_folder_label == false
516+
M.View.hide_root_folder = opts.renderer.root_folder_label == false
517517
M.View.tab = opts.tab
518518
M.View.preserve_window_proportions = options.preserve_window_proportions
519519
M.View.winopts.cursorline = options.cursorline

0 commit comments

Comments
 (0)