summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex/math.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/Snippets/tex/math.lua')
-rw-r--r--lua/Snippets/tex/math.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/Snippets/tex/math.lua b/lua/Snippets/tex/math.lua
index 670ed80..9d50cb0 100644
--- a/lua/Snippets/tex/math.lua
+++ b/lua/Snippets/tex/math.lua
@@ -22,8 +22,25 @@ return {
),
{ condition = tex.in_mathzone }
),
+ s({ trig = "tex", snippetType = "autosnippet" },
+ fmta(
+ '\\text{<>}',
+ {
+ i(1),
+ }
+ ),
+ { condition = tex.in_mathzone }
+ ),
s({ trig = 'df', snippetType = 'autosnippet' },
{ t('\\diff ') },
{ condition = tex.in_mathzone }
),
+ s({ trig = 'ple', snippetType = 'autosnippet' },
+ { t('\\left(') },
+ { condition = tex.in_mathzone }
+ ),
+ s({ trig = 'pri', snippetType = 'autosnippet' },
+ { t('\\right)') },
+ { condition = tex.in_mathzone }
+ ),
}