fix: hijack directory "BufEnter", "BufNewFile" events are nested (#3044)
Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
parent
aae01853dd
commit
39bc630816
@ -190,7 +190,7 @@ local function setup_autocommands(opts)
|
||||
end
|
||||
|
||||
if opts.hijack_directories.enable then
|
||||
create_nvim_tree_autocmd({ "BufEnter", "BufNewFile" }, { callback = M.open_on_directory })
|
||||
create_nvim_tree_autocmd({ "BufEnter", "BufNewFile" }, { callback = M.open_on_directory, nested = true })
|
||||
end
|
||||
|
||||
if opts.view.centralize_selection then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user