Is it possible to determine keymaps for any of the surround plugins? #4331
Replies: 1 comment
-
|
I do not think For current
So There is a narrower nixvim issue here: nixvim still exposes/documents For comparison,
So the summary is: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
mini.surround, nvim-surround and vim-surround all set keymaps, and they all are all mistaken they can claim 's' key, as though I wouldn't pick flash/leap any day of the year if it came to a fight.
and, it is a fight because none of the plugins expose settings that let you change their keymaps.
I can respect vim-surround the most for not pretending to be anything it's not, at least I can informedly take the appropriate action.
The docs of nvim-surround and mini.surround pretend otherwise however.
When you copy the docs and change the values there, the plugin just silently ignores you. If you send it the
nvim_surround_no_mappingsoption, it will tell you that mappings are no longer handled through setup, you must use the global option. When I setliterally none of my plugins load anymore (I use combinePlugins if that matters).
The mini.surround nixvim docs itself makes no claim over shortcuts, but mini does make claims about mini.surround, but again the options there just get ignored.
So, is there a way to get any of these plugins to allow me to change their keybindings?
Beta Was this translation helpful? Give feedback.
All reactions