Skip to content

Commit 39bc630

Browse files
phanenalex-courtis
andauthored
fix: hijack directory "BufEnter", "BufNewFile" events are nested (#3044)
Co-authored-by: Alexander Courtis <[email protected]>
1 parent aae0185 commit 39bc630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ local function setup_autocommands(opts)
190190
end
191191

192192
if opts.hijack_directories.enable then
193-
create_nvim_tree_autocmd({ "BufEnter", "BufNewFile" }, { callback = M.open_on_directory })
193+
create_nvim_tree_autocmd({ "BufEnter", "BufNewFile" }, { callback = M.open_on_directory, nested = true })
194194
end
195195

196196
if opts.view.centralize_selection then

0 commit comments

Comments
 (0)