Changed snippets

This commit is contained in:
BogosBinted 2024-11-15 13:41:01 +01:00
parent 8d1ef972bc
commit 950ddeb557
12 changed files with 2739 additions and 23 deletions

View file

@ -0,0 +1,16 @@
return {
-- Example: how to set snippet parameters
require("luasnip").snippet(
{ -- Table 1: snippet parameters
trig="saucisse",
dscr="An autotriggering snippet that expands 'hi' into 'Hello, world!'",
regTrig=false,
priority=100,
snippetType="autosnippet"
},
{ -- Table 2: snippet nodes (don't worry about this for now---we'll cover nodes shortly)
t("Hello, world!"), -- A single text node
}
-- Table 3, the advanced snippet options, is left blank.
),
}