> Haven't had time to dig into #1841 No worries at all; there's no hurry.
This commit is contained in:
parent
4fc74ca321
commit
e14c2895b4
@ -362,8 +362,12 @@ local function setup_autocommands(opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
create_nvim_tree_autocmd("BufReadPost", {
|
create_nvim_tree_autocmd("BufReadPost", {
|
||||||
callback = function()
|
callback = function(data)
|
||||||
if filters.config.filter_no_buffer or renderer.config.highlight_opened_files ~= "none" then
|
-- update opened file buffers
|
||||||
|
if
|
||||||
|
(filters.config.filter_no_buffer or renderer.config.highlight_opened_files ~= "none")
|
||||||
|
and vim.bo[data.buf].buftype == ""
|
||||||
|
then
|
||||||
reloaders.reload_explorer()
|
reloaders.reload_explorer()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
@ -371,7 +375,11 @@ local function setup_autocommands(opts)
|
|||||||
|
|
||||||
create_nvim_tree_autocmd("BufUnload", {
|
create_nvim_tree_autocmd("BufUnload", {
|
||||||
callback = function(data)
|
callback = function(data)
|
||||||
if filters.config.filter_no_buffer or renderer.config.highlight_opened_files ~= "none" then
|
-- update opened file buffers
|
||||||
|
if
|
||||||
|
(filters.config.filter_no_buffer or renderer.config.highlight_opened_files ~= "none")
|
||||||
|
and vim.bo[data.buf].buftype == ""
|
||||||
|
then
|
||||||
reloaders.reload_explorer(nil, data.buf)
|
reloaders.reload_explorer(nil, data.buf)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user