LuaSnip
LuaSnip copied to clipboard
vim-snippets snipmate like snippets does not expand iterpolation
I was able to set the path to the vim-snippets and load them like this:
require("luasnip.loaders.from_snipmate").load({
paths = {
vim.fn.stdpath('config') .. '/snippets',
}
})
But the snippet "date", wich is:
snippet date
`strftime("%Y-%m-%d")`
does not expand the date. What I am doing wrong?
If is not a feature yet, could it be someday?
You're doing nothing wrong, it just isn't supported yet.
If is not a feature yet, could it be someday?
definitely :D
soooooooooooooooooooooo, with the current master it should work automatically for snippets loaded via loaders.from_snipmate. ls.parser.parse_snipmate can be used otherwise.