Closed bhutch29 closed 3 months ago
works with my config. so it's likely an issue with your config and you should try to provide a minimal repro. Look at other issues for examples
works with my config. so it's likely an issue with your config and you should try to provide a minimal repro. Look at other issues for examples
I will keep trying. But my full config works great in versions 3.7.0 and below. And I have tried a large number of permutations of my config. So something must have changed in 3.8.0 in the expectations of the config that I still do not understand. Again, will keep trying!
Ahah, ok, I found the culprit.
For reasons that currently escape me, I have the following early in my config:
vim.keymap.set("n", " ", "<NOP>", {})
vim.keymap.set("v", " ", "<NOP>", {})
Removing this fixes everything.
as someone pointed out some people might have those mappings because they don't want the cursor to move if they're to slow with pressing second keys with leaderkey space but this should've been fixed on a recent version
That sounds good. If it doesn't seem like a bug, just an out-of-place config option that needs removing, then please close this issue. Btw, I am a very happy user of this plugin, thanks to everyone involved!
Imo it is a bug because this was an issue before and a fix was added for it but apparently this didn't cover all the cases
Something is indeed broken with my fix for those <nop>
mappings.
Will check
Although, no it does work for me with those <nop>
mappings.
@bhutch29 are you 100% sure you were using the lastest version?
I'm having the same issue with the keymap:
vim.api..nvim_set_keymap('n', '<space>', '<nop>', { noremap = true, silent = true })
@ulisses-cruz are you using the latest version? Op was using 3.8.0 which did not include the fix. You need to be on the latest version.
@folke I do have the last changes as of today:
Turns out that <nop>
isn't an actual virtual key in Neovim so it never got normalized to something like <Nop>
.
Just added special handling for <Nop>
in any case.
Thanks @folke. It works for me now. And thanks for the very very fast response.
Fix is working great, thanks so much!
Did you check docs and existing issues?
Neovim version (nvim -v)
3.8.0
Operating system/version
Linux 6.9.9
Describe the bug
Starting in 3.8.0, no matter what trigger configuration or keymap configuration I try, I can't get to trigger WhichKey. 3.9.0 and 3.10.0 do not work either.
If I run :WhichKey manually and then press it works as expected.
I apologize, I am having a really hard time producing a repro.lua that works at all, so I did not include one here. I will keep trying.
Steps To Reproduce
Expected Behavior
WhichKey should open, it does not.
Health
Log
Repro
No response