kylechui / nvim-surround

Add/change/delete surrounding delimiter pairs with ease. Written with :heart: in Lua.
MIT License
2.92k stars 60 forks source link

multi-character aliases #272

Closed mscott99 closed 8 months ago

mscott99 commented 8 months ago

Checklist

Is your feature request related to a problem? Please describe. If possible, provide a sample buffer/keymap sequence, along with the expected result.

I would like to add some surrounds which have a multi-character key, is this possible at the moment? I am trying to copy the "m(" surround from vim-sandwich which gives "\left(" "\right)". For this it is convenient to label the surround with an "m" prefix, though that seems to trigger a surround with a character "m" at the moment. Describe the solution you'd like A clear and concise description of what you want to happen.

A way to have multi-character surround keys, or aliases. Or a pointer to somewhere if a solution exists.

kylechui commented 8 months ago

Multi-character surrounds are not supported, nor are they expected to be supported in the near future. See #232

mscott99 commented 8 months ago

Ah okay thanks.