fix toggle command find file
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user