which-key.nvim
which-key.nvim copied to clipboard
feature: assign separate highlight to buffer-local keymaps
Did you check the docs?
- [X] I have read all the which-key.nvim docs
Is your feature request related to a problem? Please describe.
While groups and keymaps are easily distinguishable by the icon for groups and simply having different highlight groups, buffer-local and global keymaps do get the same highlight group WhichKeyDesc, and are thus not distinguishable.
(here, the first one is buffer local to markdown files)
Describe the solution you'd like
Assign a separate highlight group to buffer local keymaps.
(I'd even argue that distinguishing buffer-local and global keymaps is valuable enough, that they should by default have different colors, but that's probably a different question.)
Describe alternatives you've considered
The only two mechanisms for differentiating buffer-local keymaps from global ones are the sorting and require("which-key").show({ global = false }). While they technically work, they are rather inconvenient methods for checking if a mapping is buffer-local.
Additional context
No response
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.
Comment for the bot
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.
Don't
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.
Don't
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.
Don't
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.
still not?
the most useless + annoying bot ever 🤦🏻
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.
dalila...
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.
Not stale
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.
Not stale
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.
Just stop?
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.
Bump