also schedule open and follow
This commit is contained in:
parent
ba4dac1e59
commit
9c3bc7d031
@ -14,9 +14,9 @@ function M.toggle()
|
||||
lib.close()
|
||||
else
|
||||
if vim.g.lua_tree_follow == 1 then
|
||||
M.find_file(true)
|
||||
vim.schedule(function() M.find_file(true) end)
|
||||
else
|
||||
lib.open()
|
||||
vim.schedule(lib.open)
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -30,7 +30,7 @@ end
|
||||
|
||||
function M.open()
|
||||
if not lib.win_open() then
|
||||
lib.open()
|
||||
vim.schedule(lib.open)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user