Closed dlyongemallo closed 4 weeks ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.10.0
Operating system/version
Ubuntu 22.04
Describe the bug
When using which-key with a plugin that display its desc as
<Plug>(function name)
, the default config uses a regex<Plug>%(?(.*)%)?
to match the (optional) brackets, but because the wildcard is greedy, the right bracket is captured. This results in the right bracket being displayed as though it were part of the description.Steps To Reproduce
<Plug>(function name)
format for keymap descriptions, such as mg979/vim-visual-multi.:WhichKey
.Expected Behavior
Expected: The keymaps have descriptions such as
VM-Find-Under
.Actual: The keymaps have descriptions such as
VM-Find-Under)
.Health
Log
Repro