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
3 changed files with 1 additions and 8 deletions

View File

@@ -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,

View File

@@ -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