LuaSnip icon indicating copy to clipboard operation
LuaSnip copied to clipboard

Support for simple text transformations in vscode snippets

Open jceb opened this issue 3 years ago • 1 comments

Thank you for this great plugin!

Do you have plans to support simple text transformations in vscode snippets as documented here: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_transform-examples?

jceb avatar Sep 23 '21 08:09 jceb

Not short-term, it depends on moving to a new snippet parser and adding an ECMAScript regex engine.

leiserfg avatar Sep 23 '21 08:09 leiserfg

Definitely not short-term xD If jsregexp is installed transformations will be applied from now on, there's a bit of an overview on that here

L3MON4D3 avatar Aug 27 '22 18:08 L3MON4D3

I managed to compile jsregexp on my FreeBSD laptop but I don't know where to put resulting jsregexp.so. If it makes any difference, I'm using LunarVim. I had to compile it by hand because FreeBSD has a bit different defaults. Thank you!

mekanix avatar Nov 05 '22 19:11 mekanix

I don't know about LunarVim but with a standard configuration you can simply put it into ~/.config/nvim/lua. You should also be able to place it in one of the directories shown by running :lua print(package.cpath) in nvim.

kmarius avatar Nov 06 '22 10:11 kmarius