kylechui / nvim-surround

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

Support add tag around selected tag #70

Closed ShiChenCong closed 2 years ago

ShiChenCong commented 2 years ago

Checklist

Describe the solution you'd like Thank you for then work ! image

Add tag around selected tag, like vim-surround, selected tag,press S, then input tag, wil added to around div

kylechui commented 2 years ago

@ShiChenCong This should be possible via selecting the tag, then typing St[tag contents], e.g. Sth1 id="some string".

ShiChenCong commented 2 years ago

@kylechui Thank you, works!