docs: notify deprecated hide_root_folder (#2431)

This commit is contained in:
Alexander Courtis 2023-09-24 15:15:19 +10:00 committed by GitHub
parent d49a284236
commit 07eb5b4059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 8 deletions

View File

@ -356,7 +356,6 @@ Following is the default configuration. See |nvim-tree-opts| for details.
centralize_selection = false, centralize_selection = false,
cursorline = true, cursorline = true,
debounce_delay = 15, debounce_delay = 15,
hide_root_folder = false,
side = "left", side = "left",
preserve_window_proportions = false, preserve_window_proportions = false,
number = false, number = false,
@ -707,11 +706,6 @@ Idle milliseconds before some reload / refresh operations.
Increase if you experience performance issues around screen refresh. Increase if you experience performance issues around screen refresh.
Type: `number`, Default: `15` (ms) Type: `number`, Default: `15` (ms)
*nvim-tree.view.hide_root_folder*
Deprecated: please set |nvim-tree.renderer.root_folder_label| to `false`.
Hide the path of the current working directory on top of the tree.
Type: `boolean`, Default: `false`
*nvim-tree.view.side* *nvim-tree.view.side*
Side of the tree, can be `"left"`, `"right"`. Side of the tree, can be `"left"`, `"right"`.
Type: `string`, Default: `"left"` Type: `string`, Default: `"left"`

View File

@ -385,7 +385,6 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
centralize_selection = false, centralize_selection = false,
cursorline = true, cursorline = true,
debounce_delay = 15, debounce_delay = 15,
hide_root_folder = false,
side = "left", side = "left",
preserve_window_proportions = false, preserve_window_proportions = false,
number = false, number = false,

View File

@ -513,7 +513,7 @@ function M.setup(opts)
M.View.centralize_selection = options.centralize_selection M.View.centralize_selection = options.centralize_selection
M.View.side = (options.side == "right") and "right" or "left" M.View.side = (options.side == "right") and "right" or "left"
M.View.height = options.height M.View.height = options.height
M.View.hide_root_folder = options.hide_root_folder or opts.renderer.root_folder_label == false M.View.hide_root_folder = opts.renderer.root_folder_label == false
M.View.tab = opts.tab M.View.tab = opts.tab
M.View.preserve_window_proportions = options.preserve_window_proportions M.View.preserve_window_proportions = options.preserve_window_proportions
M.View.winopts.cursorline = options.cursorline M.View.winopts.cursorline = options.cursorline