chore(async): schedule git on refresh

This commit is contained in:
kiyan
2021-06-30 19:47:34 +02:00
parent a80ea23b4c
commit 768788476e

View File

@@ -167,7 +167,7 @@ function M.refresh_tree()
local use_git = config.use_git()
if use_git then git.reload_roots() end
refresh_nodes(M.Tree)
if use_git then refresh_git(M.Tree) end
if use_git then vim.schedule(function() refresh_git(M.Tree) end) end
if vim.g.nvim_tree_lsp_diagnostics == 1 then
diagnostics.update()