committed by
GitHub
parent
48d53a5934
commit
e16083cb01
@@ -43,6 +43,12 @@ local function refactored(opts)
|
||||
end
|
||||
end
|
||||
|
||||
local function deprecated(opts)
|
||||
if opts.view.hide_root_folder then
|
||||
notify.info "view.hide_root_folder is deprecated, please set renderer.root_folder_label = false"
|
||||
end
|
||||
end
|
||||
|
||||
local function removed(opts)
|
||||
if opts.auto_close then
|
||||
notify.warn "auto close feature has been removed, see note in the README (tips & reminder section)"
|
||||
@@ -64,6 +70,9 @@ function M.migrate_legacy_options(opts)
|
||||
-- silently move
|
||||
refactored(opts)
|
||||
|
||||
-- warn
|
||||
deprecated(opts)
|
||||
|
||||
-- warn and delete
|
||||
removed(opts)
|
||||
end
|
||||
|
||||
@@ -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
|
||||
M.View.hide_root_folder = options.hide_root_folder or 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
|
||||
|
||||
Reference in New Issue
Block a user