canola.nvim/doc
Barrett Ruth 52288507ea
feat(config): add default_to_float option
Problem: opening oil as a float requires users to remap every entry
point (`-`, `:Oil`, startup autocmd) individually. There is no single
flag to make float the default everywhere.

Solution: add `default_to_float = false` to config. When `true`,
`M.open()` delegates to `M.open_float()` (covers `:Oil` and all keymap
invocations), and a `VimEnter` hook replaces the initial directory
buffer with a float when starting Neovim on a directory (e.g. `nvim .`).
No recursion risk — `open_float()` calls `vim.cmd.edit()` directly and
never goes through `M.open()`.

Based on: stevearc/oil.nvim#298
2026-03-18 14:11:19 -04:00
..
oil.txt feat(config): add default_to_float option 2026-03-18 14:11:19 -04:00
upstream.md feat(config): add default_to_float option 2026-03-18 14:11:19 -04:00