File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -168,13 +168,18 @@ end
168
168
function M .refresh_tree ()
169
169
if vim .v .exiting ~= vim .NIL then return end
170
170
171
- local use_git = config .use_git ()
172
- if use_git then git .reload_roots () end
173
171
refresh_nodes (M .Tree )
174
- if use_git then vim .schedule (function () refresh_git (M .Tree ) end ) end
172
+
173
+ local use_git = config .use_git ()
174
+ if use_git then
175
+ vim .schedule (function ()
176
+ git .reload_roots ()
177
+ refresh_git (M .Tree )
178
+ end )
179
+ end
175
180
176
181
if vim .g .nvim_tree_lsp_diagnostics == 1 then
177
- diagnostics .update ( )
182
+ vim . schedule ( diagnostics .update )
178
183
end
179
184
180
185
if view .win_open () then
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ augroup NvimTree
21
21
au WinClosed * lua require' nvim-tree' .on_leave ()
22
22
endif
23
23
au ColorScheme * lua require' nvim-tree' .reset_highlight ()
24
- au User FugitiveChanged lua require' nvim-tree' .refresh ()
24
+ au User FugitiveChanged,NeogitStatusRefreshed lua require' nvim-tree' .refresh ()
25
25
if get (g: , ' nvim_tree_tab_open' ) == 1
26
26
au TabEnter * lua require' nvim-tree' .tab_change ()
27
27
endif
You can’t perform that action at this time.
0 commit comments