Replies: 2 comments 5 replies
-
|
Personally, I would say no. I was never a fan of |
Beta Was this translation helpful? Give feedback.
-
|
I think defining them in the app is good but wrapping them in a setting is better. I prefer plugins that make the hard decision of "what keymap do I set this as?" for me, but this is more esoteric than the others, so adding a setting in the setup method feels right. require("nvim-surround").setup({
mnemonic_keymaps = true,
delimiters = {I personally don't use the mnemonic keymaps yet so maybe my vote should count less lol. |
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.
-
In the code, certain single-character aliases are added to make it easier for people to manipulate surroundings, e.g.
rfor]andafor>. This allows for more ergonomic/comfortable input strings, e.g.csarinstead ofcs>]. However, this does not extend to insert surrounds, which are unprocessed bynvim-surroundbefore getting sent to Neovim itself. Thus commands likeysarbare not valid, asaris not a builtin text-object. This can be circumvented by havingnvim-surrounddefine these objects:9 votes ·
Beta Was this translation helpful? Give feedback.
All reactions