💥 Create key bindings that stick. WhichKey helps you remember your Neovim keymaps, by showing available keybindings in a popup as you type.
Apache License 2.0
5.12k
stars
163
forks
source link
bug: If the window (win) position = "bottom" config value is set then when in a vertical split and running a command the cursor will switch back to the left window. #816
[X] I have updated the plugin to the latest version before submitting this issue
[X] I have searched the existing issues of which-key.nvim
[X] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
10.0
Operating system/version
Windows 10
Describe the bug
The cursor switches sides of a vertical split after exiting the which-key popup with window position = "bottom" set. If this is not set then it works fine and the cursor stays in the window it was in.
The cursor should stay in the same window. If position = "bottom" is not set in the local config then it works as expected, the cursor stays in the same window.
Health
No response
Log
No response
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/which-key.nvim", opts = {} },
-- add any other plugins here
},
})
Did you check docs and existing issues?
Neovim version (nvim -v)
10.0
Operating system/version
Windows 10
Describe the bug
The cursor switches sides of a vertical split after exiting the which-key popup with window position = "bottom" set. If this is not set then it works fine and the cursor stays in the window it was in.
Steps To Reproduce
Expected Behavior
The cursor should stay in the same window. If position = "bottom" is not set in the local config then it works as expected, the cursor stays in the same window.
Health
No response
Log
No response
Repro