Open Ajaymamtora opened 1 month ago
I think the problem here is that you map ;D
to show which key for ;D
similar to this issue https://github.com/folke/which-key.nvim/issues/714
I would
perhaps this is somehow doable with the triggers option
even though it seems like you can't add the loop
thing there
but that option should normally be used to accomplish what you want here (well actually if it weren't for the loop option this would require no additional setup)
I think the problem here is that you map
;D
to show which key for;D
similar to this issue #714 I would
- try to map a different key to this to see if this is really the problem here
- try to remove the nowait because that might cause problems here because ;D will instantly execute the mapping and the mapping maps to show which key again -> recursion
perhaps this is somehow doable with the triggers option even though it seems like you can't add the
loop
thing there but that option should normally be used to accomplish what you want here (well actually if it weren't for the loop option this would require no additional setup)
Okay just setting no wait to false stops the infinite loop, but some of those mappings cause hydra to close, I've gone back to nvimtools/hydra instead for now, feel free to close
In my opinion this should stay open because it isn't clear how this should be done correctly I'd assume it is how you've done it (without the nowait) but then this is a bug when the menu is closed sometimes
Yeah, I'm also interested in this feature. I also tried to use the loop
feature, however, I had the same issues and also went back to nvimtools/hydra, but I'd prefer to use which-key.nvim if it can simulate the behavior of hydra.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
.
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10 stable
Operating system/version
Macos 14.5
Describe the bug
Trying to replicate hydra with ;D but invoking it causes a loop?
Steps To Reproduce
Add a key which invokes hydra, where the sub actions start with the same as the hydra key. I dont see how I would do this otherwise?
Expected Behavior
The hydra popup opens and doesn't complain about recursion
Health
Log
Repro