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.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/lua/Snippets/tex/math.lua b/lua/Snippets/tex/math.lua
index 95c4e64..256ce10 100644
--- a/lua/Snippets/tex/math.lua
+++ b/lua/Snippets/tex/math.lua
@@ -167,6 +167,13 @@ return {
{ condition = tex.in_mathzone }
),
+ s({ trig = 'mdl', snippetType = 'autosnippet' },
+ {
+ t('\\middle'),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
s({ trig = 'df', snippetType = 'autosnippet' },
{ t('\\,d ') },
{ condition = tex.in_mathzone }
@@ -231,4 +238,24 @@ return {
),
{ condition = tex.in_mathzone }
),
+
+ s({ trig = "bra", snippetType = "autosnippet" },
+ fmta(
+ '\\Bra{<>}',
+ {
+ i(1),
+ }
+ ),
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = "ket", snippetType = "autosnippet" },
+ fmta(
+ '\\Ket{<>}',
+ {
+ i(1),
+ }
+ ),
+ { condition = tex.in_mathzone }
+ ),
}