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

Remove HTML special case #32

Closed andrewferrier closed 2 years ago

andrewferrier commented 2 years ago

This may have already occurred to you, but I think you could now remove the explicit HTML support in the config and refactor it as a (default) pair that uses function and input to get the tag.

This'll probably simplify some code.

andrewferrier commented 2 years ago

Maybe not actually - I saw you do some fancy stuff with HTML attributes during replacement. OK, ignore this...

kylechui commented 2 years ago

As I mentioned here, refactoring would only really allow for inserting HTML tags using a function, but not changing/deleting.