canola.nvim/lua
Barrett Ruth 2228f80196 refactor: only create BufAdd autocmd when default_file_explorer is true
Problem: the BufAdd autocmd that hijacks directory buffers was always
created, even when default_file_explorer was false. The guard inside
maybe_hijack_directory_buffer made it a no-op, but the autocmd still
fired on every BufAdd event.

Solution: wrap the BufAdd autocmd creation and initial buffer hijack
in a config.default_file_explorer conditional. The guard inside
maybe_hijack_directory_buffer is kept as defense-in-depth.

Based on: stevearc/oil.nvim#720
2026-02-20 16:26:24 -05:00
..
oil refactor: only create BufAdd autocmd when default_file_explorer is true 2026-02-20 16:26:24 -05:00
resession/extensions cleanup: don't need empty methods in resession extension 2023-09-17 10:10:42 -07:00