hydra.nvim icon indicating copy to clipboard operation
hydra.nvim copied to clipboard

Invalid fold jump will exit hydra leaving hint window open

Open EtiamNullam opened this issue 3 years ago • 0 comments

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:

  1. Setup hydra like this:
require('hydra') {
  mode = 'n',
  body = 'z',
  hint = 'Fold',
  heads = {
    { 'j', 'zj' },
    { 'k', 'zk' },
  },
}
  1. Open some file with indented text.
  2. Move around indents using starting from z then j or k multiple times.
  3. Attempt invalid move, for example try to move to previous indent when already at the first.
  4. Notice keys no longer work as configured by calling hydra.
  5. Notice floating hint window is still open.

EtiamNullam avatar Sep 17 '22 01:09 EtiamNullam