feat(#1974): experimental.git.async see https://github.com/nvim-tree/nvim-tree.lua/issues/2104 (#2094)
* async git watcher reload; callback hell for now * async git watcher reload; revert unnecessary extractions * async git watcher reload; callback and non-callback functions are required for sync codepaths that loop * async git watcher reload * async git watcher reload * feat(#1974): experimental.git.async * feat(#1974): experimental.git.async
This commit is contained in:
committed by
GitHub
parent
7ad1c204c4
commit
0ef3d4613f
@@ -59,8 +59,9 @@ function M.create_watcher(node)
|
||||
else
|
||||
log.line("watcher", "node event executing refresh '%s'", node.absolute_path)
|
||||
end
|
||||
require("nvim-tree.explorer.reload").refresh_node(node)
|
||||
require("nvim-tree.renderer").draw()
|
||||
require("nvim-tree.explorer.reload").refresh_node(node, function()
|
||||
require("nvim-tree.renderer").draw()
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user