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

fix: Translate char to termcodes when reading input (#271) #273

Closed Mango0x45 closed 8 months ago

Mango0x45 commented 8 months ago

In ‘config.translate_opts()’, the chars specified in the ‘surrounds’ portion of a configuration are translated to Vim internal representation in order to support special characters. As a result though, we need to actually translate the users input. Otherwise configuration of certain Unicode characters such as U+2019 RIGHT SINGLE QUOTATION MARK may not work.