You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the plugin now evaluates all {rhs} of type <expr> when :WhichKey is invoked. But that's a problem if the expression must not be executed before the actual keys are used.
Actually the whole point of using expressions is probably to do some calculation on runtime. So I think the fix should be reverted / improved.
The text was updated successfully, but these errors were encountered:
Environment:
Describe the bug
I want to use a
<expr>
mapping like this:When I hit
<leader>rg
it will ask me for a search pattern and then execute:Rg mypattern
.If I only press
<leader>
and wait it should bring up the which-key menu as usual. But instead it prompts me fo the search pattern now:To Reproduce
Here the relevant parts from my config
Expected behavior
When hitting
<leader>
it should show the which-key menu.Additional context
This is related to #60 and the fix in 80a1e88.
It seems like the plugin now evaluates all
{rhs}
of type<expr>
when:WhichKey
is invoked. But that's a problem if the expression must not be executed before the actual keys are used.Actually the whole point of using expressions is probably to do some calculation on runtime. So I think the fix should be reverted / improved.
The text was updated successfully, but these errors were encountered: