-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Fix which-key errors #483
Comments
I landed here when I found which-key.nvim was causing Comment.nvim Which warning did you get from which-key? How does your snippet remove the warning? I see that "gc" and "gb" keymaps in normal mode are removed. Those keymaps are added back via |
Yes because the the mappings in |
Perhaps I misunderstood something. Some RHS parameters from Comment.txt at around line 267:
|
Those keymaps don't need to "work" since they're supposed to be group-keymaps. We don't want to run those plug-commands. We want to run nothing and set the which-key heading.
Yes, those look like the problematic lines. |
For those coming here from the future, the which-key warnings @NeilGirdhar may be referring to are from
I changed my keymaps for |
@NeilGirdhar , thanks for taking the time to explain. I'll summarize to help others new to I made many configuration changes during my experiments, including using |
You got it! Do you feel like trying to get a pull request through to remove these from Comment.nvim? Maybe even (somehow, I have no idea how) make it add the group bindings if which-key is installed? That would clean this up for all users 😄 |
Having |
I'm curious if either of you updated your |
@bak Which installation option are you talking about? I get
without the above configuration. |
Yeah sorry I don't know exactly the change that fixed things, but I was getting the same output as you, and found this thread, but noticed that which-key released
and haven't had a problem since |
I don't think that works. Try removing the config and see if the errors reappear. If not, then this isn't really a fix. |
I was forced to do this to suppress the which-key warnings:
The text was updated successfully, but these errors were encountered: