-
Notifications
You must be signed in to change notification settings - Fork 154
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: prefer desc
to cmd
as the fallback label
#253
Conversation
I use this branch since almost a week and have not faced any issues so far 🙂 I really like the idea of being able to register a description string for keybindings even without the which-key |
This would be very helpful for Mapx.nvim's WhichKey integration. Once this is implemented, I can remove all WhichKey specific code which would improve my plugin's performance and make the code much cleaner. |
Adds support for `vim.keymap.set` `desc` option folke/which-key.nvim#253
Adds support for `vim.keymap.set` `desc` option folke/which-key.nvim#253
I migrated to Lua a few days ago and I've been using this branch, since it avoids duplicate work. No problems so far. |
Totally makes sense. Thank you! |
It obviously makes more sense to use the built-in description as the default label, which even eliminates a lot of repetition of
require('which-key').register ...