-
Notifications
You must be signed in to change notification settings - Fork 176
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
"mode" can't be used in group mappings #56
Comments
Just added this. Adding |
Awesome, it did fix that issue. But I have another issue with regards to modes. I can create a new issue if you'd prefer that. I'm trying to translate
EDIT: strike through to banish this rather embarassing brain freeze |
That's actually a lua table where you assign the index So I never know there were actually two entries there. |
I'll make a change where you can set |
🤦 thanks |
I'll close this and leave it as it is right now. There's multiple possibilities to define the maps for multiple modes. |
I was expecting this to work but it doesn't.
Is the only way to do this define |
The error that I get when I try the above is this:
|
@folke any updates on this? I tried using it today, but it did not work. This is the code I tried to use: which_key.register({
d = { [["+d]], "delete to clipboard" },
p = { [["+p]], "paste from clipboard" },
P = { [["+P]], "paste from clipboard" },
y = { [["+y]], "yank to clipboard" }
}, { prefix = "<leader>", mode = { "n", "x" } })
|
I just ran into the same issue trying to map text objects. |
If I try to do something like this
the plugin complains with
so I need to pull the mappings apart:
which works but is a bit annoying because now there are always multiple places where I need to look for the mappings for a given group. Would you consider making
mode
available in group mappings too? Because things likesilent
andnoremap
work.The text was updated successfully, but these errors were encountered: