fix(resize): reimplement auto resize

This commit is contained in:
kiyan
2021-06-30 21:21:06 +02:00
parent 768788476e
commit 86188a4b9d
3 changed files with 5 additions and 5 deletions

View File

@@ -203,7 +203,7 @@ function M.focus(winnr, open_if_closed)
end
function M.resize()
if not a.nvim_win_is_valid(M.get_winnr()) then
if vim.g.nvim_tree_auto_resize == 0 or not a.nvim_win_is_valid(M.get_winnr()) then
return
end