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.lua39
1 files changed, 38 insertions, 1 deletions
diff --git a/lua/Snippets/tex/math.lua b/lua/Snippets/tex/math.lua
index 411ac7a..b6c5068 100644
--- a/lua/Snippets/tex/math.lua
+++ b/lua/Snippets/tex/math.lua
@@ -20,7 +20,17 @@ return {
),
{ condition = tex.in_mathzone }
),
- s({ trig = "in", snippetType = "autosnippet" },
+ s({ trig = "sum", snippetType = "autosnippet" },
+ fmta(
+ '\\sum_{<>}^{<>}',
+ {
+ i(1),
+ i(2),
+ }
+ ),
+ { condition = tex.in_mathzone }
+ ),
+ s({ trig = "int", snippetType = "autosnippet" },
fmta(
'\\int_{<>}^{<>}',
{
@@ -30,6 +40,14 @@ return {
),
{ condition = tex.in_mathzone }
),
+ s({ trig = 'nn', snippetType = 'autosnippet' },
+ fmta(
+ '\\num{<>}',
+ {
+ i(1),
+ }
+ )
+ ),
s({ trig = "tex", snippetType = "autosnippet" },
fmta(
'\\text{<>}',
@@ -57,6 +75,15 @@ return {
),
{ condition = tex.in_mathzone }
),
+ s({ trig = "ove", snippetType = "autosnippet" },
+ fmta(
+ '\\overline{<>}',
+ {
+ i(1),
+ }
+ ),
+ { condition = tex.in_mathzone }
+ ),
s({ trig = 'ΓΆΓΆ', snippetType = 'autosnippet' },
fmta(
'^{<>}',
@@ -66,6 +93,16 @@ return {
),
{ condition = tex.in_mathzone }
),
+ s({ trig = 'gg', snippetType = 'autosnippet' },
+ fmta(
+ '\\sqrt[<>]{<>}',
+ {
+ i(1),
+ i(2),
+ }
+ ),
+ { condition = tex.in_mathzone }
+ ),
s({ trig = 'll', snippetType = 'autosnippet' },
fmta(
'_{<>}',