How to turn off default mappings #173
Replies: 3 comments 12 replies
-
As per
In your case, set the corresponding keymaps to require('nvim-surround').setup({
keymaps = {
insert = false,
}
}) The default configuration can be found in the I don't personally use which-key, so if you could provide a bit more context on your issue, I'd be glad to help! |
Beta Was this translation helpful? Give feedback.
-
That's great, thanks so much! WhichKey is easy to configure, though I need to know what command to put in place of COMMAND below:
I've tried putting Typically the commands in WhichKey look something like: Thanks again for your help! |
Beta Was this translation helpful? Give feedback.
-
Ok so I created a WhichKey binding with the VimTex command |
Beta Was this translation helpful? Give feedback.
-
I'm also switching from the old surround plugins to this one, and would like to turn off most of the default mappings which I don't use, keeping just the few that I do. I imagine there must be a way to do this, but couldn't find anything in the existing discussion or issues.
I would also like to use the few surround functions that I use via WhichKey. Right now it works OK mapping
<space>ss
toys
and etc., however, if it was possible to put whatever it is thatys
triggers in place ofys
, that would be preferable. I see thatys
corresponds tonormal
underkeymaps
which is underM.default_opts
in the config, however, given my limited understanding of how lua works, I can't see my way all the way to an answer to my question. Any help would be greatly appreciated.Beta Was this translation helpful? Give feedback.
All reactions