snacks.nvim/lua
Folke Lemaitre 756a791131
fix(picker): prevent WinEnter handling during startup
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>
2025-10-21 13:16:14 +02:00
..
snacks fix(picker): prevent WinEnter handling during startup 2025-10-21 13:16:14 +02:00
trouble/sources Revert "feat: test" 2025-02-14 22:13:38 +01:00