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 have updated the plugin to the latest version before submitting this issue
I have searched the existing issues of snacks.nvim
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
v0.11.0-dev-1804+g2e0a563828
Operating system/version
MacOS 15.3
Describe the bug
Window commands doesn't behave as expected. Instead of moving the focus to the window immediately to the right of the explorer, when multiple windows are open, it jumps to the previous window instead.
Steps To Reproduce
Setup:
Vertical split with two windows: A | B
The cursor is on the right one (B)
Open the explorer
hit <C-w>l
Expected Behavior
Expectation: Move the focus to the window immediately to the right of the explorer (A)
Behaviour: The focus goes to the previous window instead (B)
Repro
vim.env.LAZY_STDPATH=".repro"load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec= {
{ "folke/snacks.nvim", opts= {} },
-- add any other plugins here
},
})
The text was updated successfully, but these errors were encountered:
That happens because the Explorer window is actually a floating window.
The same happens with vanilla Neovim. Just do nvim --clean and then :vsplit and put your cursor on the right window. Then create a floating window with lua vim.api.nvim_open_win(vim.api.nvim_create_buf(false,true), true, {relative = "editor",width = 50, height = 20, row = 10, col = 10, style = "minimal"}) and then press <C-w>l and see where the cursor will land. It will land on the window where your cursor previously was.
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.11.0-dev-1804+g2e0a563828
Operating system/version
MacOS 15.3
Describe the bug
Window commands doesn't behave as expected. Instead of moving the focus to the window immediately to the right of the explorer, when multiple windows are open, it jumps to the previous window instead.
Steps To Reproduce
Setup:
<C-w>l
Expected Behavior
Expectation: Move the focus to the window immediately to the right of the explorer (A)
Behaviour: The focus goes to the previous window instead (B)
Repro
The text was updated successfully, but these errors were encountered: