canola.nvim/lua
Barrett Ruth ae412edd94
fix: hijack all directory buffers at setup, not just current
Problem: when neovim is opened with multiple directory arguments
(e.g. nvim dir1/ dir2/), only the first directory gets handled by oil.
The BufAdd autocmd that renames directory buffers to oil:// URLs is
registered inside setup(), but neovim creates all argument buffers
before setup() runs. The initial hijack block only processes
nvim_get_current_buf(), so additional directory buffers are never
renamed and remain as plain empty buffers.

Solution: iterate all existing buffers at setup time instead of only
the current one. Each directory buffer gets renamed to an oil:// URL
so that BufReadCmd fires when the user switches to it.

Closes: stevearc/oil.nvim#670
2026-02-21 02:18:17 -05:00
..
oil fix: hijack all directory buffers at setup, not just current 2026-02-21 02:18:17 -05:00
resession/extensions cleanup: don't need empty methods in resession extension 2023-09-17 10:10:42 -07:00