fix toggle command find file
This commit is contained in:
@@ -15,10 +15,12 @@ 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)
|
||||
end
|
||||
if not view.win_open() then
|
||||
lib.open()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user