-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(keys): desc
in <nop> keymaps can now become prefix label
#522
Conversation
* User can now use keymaps with <nop> to set `desc` as label to prefix key * Fix some typo
This is actually really cool. Was just looking to implement something similar :) fyi: It also works with an empty mapping like map("n", "<leader>h", "", {desc = "Help Prefix"}) |
Thanks! |
Trying to set up a prefix like this (with updated which-key (c1958e2) and lazy.nvim (0c1ec52)). Using the keys table in lazy.nvim config:
Which-key doesn't toggle for this key mapping (if it's typed fast enough), which is a drawback. I would wish for a UX where |
@bluss can you update both which-key and lazy? |
updated both. Fwiw, the behaviour is still the same (before and after lazy load too); typing |
which-key indeed has to have run at least once, otherwise your nop keymap would be executed. |
Got it, thank you! |
There was indeed something wrong there and should now be fixed! |
User can now use keymaps with to set
desc
as label to prefixkey
Fix some typo
Example: