-
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
Disable visual mappings #26
Comments
you need to specify a mode. i think that should fix it. so |
The correct way to disable this would be to not load the {
plugins = {
-- ...
presets = {
operators = false
-- ..
},
},
-- add operators that will trigger motion and text object completion
-- to enable all native operators, set the preset / operators plugin above
operators = {
d = "Delete",
c = "Change",
y = "Yank (copy)",
["g~"] = "Toggle case",
["gu"] = "Lowercase",
["gU"] = "Uppercase",
[">"] = "Indent right",
["<lt>"] = "Indent left",
["zf"] = "Create fold",
["!"] = "Filter though external program",
-- ["v"] = "Visual Character Mode",
gc = "Comments"
},
} Although, this seems a bit verbose to just disable one operator. I'll see if I can come up with an easier way to do this. |
Thank you very much, it works great 😃 Should I close the issue or will it be closed when making changes? |
I think I'll just add some proper documentation on how to set up operators, motions and text objects and how the preset works in regards to that. You can leave it open for now :) |
Understood, thank you very much again 🙂 |
For anyone still following this issue or views it in the future, this plugin's author, folke, did document how to do this in the README.
I tried it and it works for me. |
Is there a way to stop triggering WhichKey at
v
key mappings? I'm trying to enter visual mode without triggering it but it isn't possibleAlready tried with
but the key bindings keep coming out when pressing v 😕
The text was updated successfully, but these errors were encountered: