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.43k stars 177 forks source link

feature: always evaluate cond if it is a function #880

Open metalinspired opened 2 weeks ago

metalinspired commented 2 weeks ago

Did you check the docs?

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

cond is evaluated only once which, in my opinion, greatly reduces its usefulness

Describe the solution you'd like

It would be nice that cond is evaluated always if it is a function. This way we could dynamically en-/disable a mapping.

Describe alternatives you've considered

Auto command maybe...

Additional context

No response