Question: is it possible to make snippets work only on beginning of the line?
Ultisnips supports it. I am not sure if such option is part of VSCode snippets' format (couldn't find anything on that in documentation linked in this repo's README) or whether vim-vsnip does/could do itty itself.
Thanks!
Currently, No.
It maybe related to https://github.com/hrsh7th/vim-vsnip/issues/136
No, you probably can get the desired behaviour by implementing a custom vim function and then call it through the VIM syntax, e.g.
${VIM: (col('.') == 1) ? 'snippet' : 'prefix'}
It always expands, but if not at the beginning of the line it behaves like a noop. It is hacky and does not support tabstops or similar behaviours though. :D
Don't like the hacky idea, but thanks! Seems like line_pattern from #136 might do that? Will wait for it. Thanks for great plugin!