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.
r
for]
anda
for>
. This allows for more ergonomic/comfortable input strings, e.g.csar
instead ofcs>]
. However, this does not extend to insert surrounds, which are unprocessed bynvim-surround
before getting sent to Neovim itself. Thus commands likeysarb
are not valid, asar
is not a builtin text-object. This can be circumvented by havingnvim-surround
define these objects:9 votes ·
Beta Was this translation helpful? Give feedback.
All reactions