Changed snippets
This commit is contained in:
parent
8d1ef972bc
commit
950ddeb557
12 changed files with 2739 additions and 23 deletions
16
lua/custom/plugins/Luasnip/tex/all.lua
Normal file
16
lua/custom/plugins/Luasnip/tex/all.lua
Normal 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.
|
||||
),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue