-
Just trying to add a new line causes luasnip to fail: return {
s(
{ trig = "H(%d)", regTrig = true },
f(function(args, snip)
return string.rep("\n", tonumber(snip.captures[1]))
end)
),
}
and I don't want to use dynamic node as it needs another keypress |
Beta Was this translation helpful? Give feedback.
Answered by
leiserfg
Jul 19, 2023
Replies: 1 comment 2 replies
-
You should return a list with one element per line instead. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
foodornt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should return a list with one element per line instead.