Skip to content

Commit

Permalink
Update migration code
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Courtis <[email protected]>
  • Loading branch information
ava5627 and alex-courtis authored Feb 18, 2024
1 parent 6e0f85e commit 5f4a19b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lua/nvim-tree/legacy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,12 @@ local function refactored(opts)
end

-- 2024/02/15
if type(opts.update_focused_file.update_root) == "boolean" then
opts.update_focused_file.update_root = {
enable = opts.update_focused_file.update_root,
}
if opts.update_focused_file.ignore_list then
opts.update_focused_file.update_root.ignore_list = opts.update_focused_file.ignore_list
opts.update_focused_file.ignore_list = nil
if type(opts.update_focused_file) == "table" then
if type(opts.update_focused_file.update_root) ~= "table" then
opts.update_focused_file.update_root = { enable = opts.update_focused_file.update_root }
end
end
utils.move_missing_val(opts, "update_focused_file", "ignore_list", opts, "update_focused_file.update_root", "ignore_list", true)
end

local function deprecated(opts)
Expand Down

0 comments on commit 5f4a19b

Please sign in to comment.