folke / which-key.nvim

💥 Create key bindings that stick. WhichKey helps you remember your Neovim keymaps, by showing available keybindings in a popup as you type.
Apache License 2.0
5.12k stars 163 forks source link

feature: hide popup when in Hydra mode #778

Closed franroa closed 1 month ago

franroa commented 1 month ago

Did you check the docs?

Is your feature request related to a problem? Please describe.

When using Hydra mode on my laptop the DAP keymap are taking too much place on the screen. This is a bit noisy when debugging, of I leave the cursor centered (with typewriter, for example)

Describe the solution you'd like

I wonder how difficult would be to add a key map to somehow hide the popup window without exiting hydra

Describe alternatives you've considered

I am clueless at this point TBH

Additional context

No response

folke commented 1 month ago

I just pushed a change where you can override show({delay = ...}). Just set it to a large number to prevent it from showing.

franroa commented 1 month ago

awesome, thanks!