Skip to content

Commit 870590f

Browse files
committed
fix toggle command
1 parent 87cf643 commit 870590f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/nvim-tree.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ function M.toggle()
1515
if view.win_open() then
1616
view.close()
1717
else
18+
lib.open()
1819
if vim.g.nvim_tree_follow == 1 then
1920
M.find_file(true)
20-
else
21-
lib.open()
2221
end
2322
end
2423
end

0 commit comments

Comments
 (0)