kylechui / nvim-surround

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

Inconsistency with tpope/vim-surround #20

Closed NoahTheDuke closed 2 years ago

NoahTheDuke commented 2 years ago

In vim-surround, cs{} changes the surrounding brackets from "with buffer space" to "without buffer space". If you do cs{{, an additional space is inserted, and if you do cs{} or cs}}, all buffer spaces are removed.

Currently, nvim-surround doesn't do anything at all when performing those actions.

NoahTheDuke commented 2 years ago

This is fixed now, thank you so much. Looks like you're doing the "correct" thing too, adding and removing the surrounding spaces one at a time instead of removing all additional whitespace.