fix toggle command find file

This commit is contained in:
kiyan
2021-07-10 11:53:30 +02:00
parent 870590fb38
commit 0a13676f30

View File

@@ -15,10 +15,12 @@ function M.toggle()
if view.win_open() then if view.win_open() then
view.close() view.close()
else else
lib.open()
if vim.g.nvim_tree_follow == 1 then if vim.g.nvim_tree_follow == 1 then
M.find_file(true) M.find_file(true)
end end
if not view.win_open() then
lib.open()
end
end end
end end