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
After mapping a key to (in my case it is "s") using nnoremap s <C-w> , said key cannot open hint window.
Adding this key or <C-w> into triggers manually does not open it either.
If I use proxy = "<C-w>" to achieve this, the window can open.
But since the preset builtin does not contain all the bindings, keybindings such as sH do not work unless I manually add whichkey.add{{"<C-w>H"}} into the whichkey.
Steps To Reproduce
Add nnoremap s <C-w> or vim.keymap.set("n", "s", "<C-w>") into config file
Press s, observe that ^W appears in right bottom corner but hint window does not pop up
The same thing happens even if
{ "s", mode = { "x", "n" } },
{ "<C-w>", mode = { "n", "x" } },
is added into triggers
Expected Behavior
I expect that the hint window will pop up, especially if I add the manual triggers for the keys.
Or that proxy can proxy my key to <C-w> completely and allow bindings not listed in the preset to be directly used as well.
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.3
Operating system/version
Linux 6.6.58 #1-NixOSx86_64 GNU/Linux
Describe the bug
After mapping a key to (in my case it is "s") using
nnoremap s <C-w>
, said key cannot open hint window.Adding this key or
<C-w>
into triggers manually does not open it either.If I use
proxy = "<C-w>"
to achieve this, the window can open.But since the preset builtin does not contain all the bindings, keybindings such as
sH
do not work unless I manually addwhichkey.add{{"<C-w>H"}}
into the whichkey.Steps To Reproduce
nnoremap s <C-w>
orvim.keymap.set("n", "s", "<C-w>")
into config fileis added into triggers
Expected Behavior
I expect that the hint window will pop up, especially if I add the manual triggers for the keys.
Or that proxy can proxy my key to
<C-w>
completely and allow bindings not listed in the preset to be directly used as well.Health
No response
Log
No response
Repro
The text was updated successfully, but these errors were encountered: