mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
When opening Neovim with a directory argument (e.g., `nvim .`), the explorer's preview window was not being shown automatically. This was because the WinEnter autocmd in the picker was triggering during the startup sequence before VimEnter, interfering with the initialization. The fix adds a check for `vim.v.vim_did_enter == 0` to skip the window management logic during startup, allowing the explorer to properly initialize with its preview window enabled. Fixes #2257 (second issue) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| snacks | ||
| trouble/sources | ||