You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not too surprised by this. Lazy.nvim is hijacking the typical startup process and opening its own window. Oil relies on a specific sequence of events and autocmds to take over folder named buffers. There may be a way to make these work together more gracefully, but it's not a high priority for me.
Have you tried +Oil arg? This forced it to execute and solved the issue of Oil not opening on starting nvim in dir that started occurring some time ago for me as well.
I'm on Fedora but zsh snippet from my config for C-Space to open in pwd should work on macos as well:
# ctrl-space to quickly open pwd in nvimfunctionnvim_here() {
nvim "$(pwd)" +Oil
}
zle -N nvim_here
bindkey '^ ' nvim_here
Did you check the docs and existing issues?
Neovim version (nvim -v)
v0.10.2
Operating system/version
MacOS 15.1.1
Describe the bug
When running
nvim .
, and Lazy.nvim needs to install / update a plugin, Oil fails to open.nvim-tree
suggests adding the following lines toinit.lua
, but that doesn't help hereI have tried with no Oil configuration, and with
What is the severity of this bug?
breaking (some functionality is broken)
Steps To Reproduce
nvim -u repro.lua .
Expected Behavior
I expected Oil to open the given directory.
This works when no plugins need to be installed, but if even one plugin needs to install or be updated, Oil fails to open after Lazy.nvim is done.
Directory structure
repro.lua
Repro
Did you check the bug with a clean config?
nvim -u repro.lua
using the repro.lua file above.The text was updated successfully, but these errors were encountered: