fix toggle command

This commit is contained in:
kiyan
2021-07-10 11:49:37 +02:00
parent 87cf643cb1
commit 870590fb38

View File

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