Open s1n7ax opened 1 month ago
Ok I added following to make sure it's not the plugin I'm working on.
keys = {
{
'<leader>tr',
function()
vim.print('executing')
end,
},
},
https://github.com/user-attachments/assets/a26cc2e4-8b3a-48b0-ac4a-723eab30d08a
it would help a lot if you could try to provide a minimal repro since this problem seems only to occur in some specific cases because normally it works for most people
@max397574 I have created this branch here. The keymap is <leader>tr
. I have a simple print message for that.
https://github.com/s1n7ax/lazyvim-dotnvim/tree/which-key-issue
I'm facing this issue too. I use the default LazyVim distribution, and when I do "Leader w m" to maximize a window, it just doesn't recognize it unless I do it slowly, after which I'm able to use the keymap really fast.
Same here! When I access any file for the first time in a session, I need to wait a short amount of time after pressing the leader key, otherwise, the command executed is anything but the one I intended. For example, if I modify the opened file and quickly press
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.1
Operating system/version
NixOS
Describe the bug
Sometimes when I hit the keymaps fast for the first time, action is not executed. This occurs randomly when I open neovim. I have installed test.core in LazyVim. This is the neotest configuration I'm using. I have set 1000ms delay in which-key but removing the entire spec from the configuration did not fixed the issue either. I have set
lazy = true
in Lazynvim in my config which is by defaultfalse
in LazyVim. I work with JavaScript and jest tests every day and I see the same issue with that as well.In the following video, I'm working on a neotest extension. In the video, If you see errors, that means the keymap worked as expected. For the first 2 times, keymap works as expected. expected is to run the test on
<space>tr
. In the third time, keymap does not work when I hit it fast.In the same session, if
nmap <leader>tr
command then it starts working back again.t
andr
fast, once again, it starts working again (My delay in config is 1000 so waiting til the UI is not necessary)https://github.com/user-attachments/assets/c2c98b67-4066-4280-8c9e-0bc440d3d932
Steps To Reproduce
<leader>tr
multiple timesExpected Behavior
Current test to run every single time
Health
Log
Following logs are from NOT working session.
This is from a working session
Repro
No response