run nvim tree refresh on neogit status change
This commit is contained in:
@@ -168,13 +168,18 @@ end
|
||||
function M.refresh_tree()
|
||||
if vim.v.exiting ~= vim.NIL then return end
|
||||
|
||||
local use_git = config.use_git()
|
||||
if use_git then git.reload_roots() end
|
||||
refresh_nodes(M.Tree)
|
||||
if use_git then vim.schedule(function() refresh_git(M.Tree) end) end
|
||||
|
||||
local use_git = config.use_git()
|
||||
if use_git then
|
||||
vim.schedule(function()
|
||||
git.reload_roots()
|
||||
refresh_git(M.Tree)
|
||||
end)
|
||||
end
|
||||
|
||||
if vim.g.nvim_tree_lsp_diagnostics == 1 then
|
||||
diagnostics.update()
|
||||
vim.schedule(diagnostics.update)
|
||||
end
|
||||
|
||||
if view.win_open() then
|
||||
|
||||
Reference in New Issue
Block a user