hydra.nvim
hydra.nvim copied to clipboard
Invalid fold jump will exit hydra leaving hint window open
I really like the idea of the plugin as I've configured which-key.nvim before for similar effect. Sadly (luckily?) I've quickly encountered this minor problem which leaves floating hint window open while hydra is no longer in effect.
Steps to reproduce:
- Setup hydra like this:
require('hydra') {
mode = 'n',
body = 'z',
hint = 'Fold',
heads = {
{ 'j', 'zj' },
{ 'k', 'zk' },
},
}
- Open some file with indented text.
- Move around indents using starting from
zthenjorkmultiple times. - Attempt invalid move, for example try to move to previous indent when already at the first.
- Notice keys no longer work as configured by calling hydra.
- Notice floating hint window is still open.