Closed plexigras closed 6 years ago
snippet .map options word regexp '\(\w\+\)s\.map$' .map(\0 => ${0})
so i can have things.map convert to things.map(thing => ...)
things.map
things.map(thing => ...)
and if the whole match would be removed by default you could do even cooler things
snippet .keys options word regexp '\(\w\+\)\.keys$' Object.keys(\0)
then this would convert test.keys to Object.keys(test)
test.keys
Object.keys(test)
Sorry, I don't want to add the complex feature in neosnippet.vim.
so i can have
things.map
convert tothings.map(thing => ...)
and if the whole match would be removed by default you could do even cooler things
then this would convert
test.keys
toObject.keys(test)