File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -363,17 +363,17 @@ local function setup_autocommands(opts)
363
363
364
364
create_nvim_tree_autocmd (" BufReadPost" , {
365
365
callback = function ()
366
- if filters . config . filter_no_buffer or renderer . config . highlight_opened_files then
366
+ utils . debounce ( " BufReadPost:filter_buffer " , opts . update_focused_file . debounce_delay , function ()
367
367
reloaders .reload_explorer ()
368
- end
368
+ end )
369
369
end ,
370
370
})
371
371
372
372
create_nvim_tree_autocmd (" BufUnload" , {
373
373
callback = function (data )
374
- if filters . config . filter_no_buffer or renderer . config . highlight_opened_files then
374
+ utils . debounce ( " BufUnload:filter_buffer " , opts . update_focused_file . debounce_delay , function ()
375
375
reloaders .reload_explorer (nil , data .buf )
376
- end
376
+ end )
377
377
end ,
378
378
})
379
379
You can’t perform that action at this time.
0 commit comments