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