chore: move auto_resize to actions.open_file.resize_window

fixes #1034
This commit is contained in:
kiyan
2022-03-01 20:07:36 +01:00
parent 9ec710e338
commit 6af2d5a720
6 changed files with 14 additions and 12 deletions

View File

@@ -87,9 +87,9 @@ local migrations = {
end,
nvim_tree_auto_resize = function(o)
utils.table_create_missing(o, "view")
if o.view.auto_resize == nil then
o.view.auto_resize = vim.g.nvim_tree_auto_resize ~= 0
utils.table_create_missing(o, "actions.open_file")
if o.actions.open_file.resize_window == nil then
o.actions.open_file.resize_window = vim.g.nvim_tree_auto_resize ~= 0
end
end,