324 current 2025-02-15 01:00:19 25.05.20241217.d3c42f1 6.6.66 *

This commit is contained in:
2025-02-15 01:00:36 -05:00
parent 0e33dc5d3c
commit a7099dea42
5 changed files with 58 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
return {
-- Example: how to set snippet parameters
require("luasnip").snippet(
{ -- Table 1: snippet parameters
trig="hi",
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.
),
}