This reverts commit 38aac09151.
This commit is contained in:
@@ -76,7 +76,12 @@ function M.create_watcher(node)
|
||||
else
|
||||
log.line("watcher", "node event executing refresh '%s'", node.absolute_path)
|
||||
end
|
||||
node:refresh()
|
||||
local explorer = require("nvim-tree.core").get_explorer()
|
||||
if explorer then
|
||||
explorer:refresh_node(node, function()
|
||||
explorer.renderer:draw()
|
||||
end)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user