Skip to content

docs: notify deprecated hide_root_folder #2431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions doc/nvim-tree-lua.txt
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ Following is the default configuration. See |nvim-tree-opts| for details.
centralize_selection = false,
cursorline = true,
debounce_delay = 15,
hide_root_folder = false,
side = "left",
preserve_window_proportions = false,
number = false,
Expand Down Expand Up @@ -707,11 +706,6 @@ Idle milliseconds before some reload / refresh operations.
Increase if you experience performance issues around screen refresh.
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*
Side of the tree, can be `"left"`, `"right"`.
Type: `string`, Default: `"left"`
Expand Down
1 change: 0 additions & 1 deletion lua/nvim-tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
centralize_selection = false,
cursorline = true,
debounce_delay = 15,
hide_root_folder = false,
side = "left",
preserve_window_proportions = false,
number = false,
Expand Down
2 changes: 1 addition & 1 deletion lua/nvim-tree/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ function M.setup(opts)
M.View.centralize_selection = options.centralize_selection
M.View.side = (options.side == "right") and "right" or "left"
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.preserve_window_proportions = options.preserve_window_proportions
M.View.winopts.cursorline = options.cursorline
Expand Down