summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex/math.lua
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2023-05-19 17:08:13 +0200
committerNanderty <psopka@sopka.ch>2023-05-19 17:08:13 +0200
commit95686ce8c52cab5d43ec5cc031ce3758589a5f8f (patch)
treedd00f6c20d8bbfa4406e80512258aa60239b96b0 /lua/Snippets/tex/math.lua
parent5b86f069582eaff5d360e62e28dcaba3aee9de47 (diff)
downloadneovim-config-95686ce8c52cab5d43ec5cc031ce3758589a5f8f.tar.gz
neovim-config-95686ce8c52cab5d43ec5cc031ce3758589a5f8f.tar.bz2
neovim-config-95686ce8c52cab5d43ec5cc031ce3758589a5f8f.zip
graphics
Diffstat (limited to 'lua/Snippets/tex/math.lua')
-rw-r--r--lua/Snippets/tex/math.lua36
1 files changed, 33 insertions, 3 deletions
diff --git a/lua/Snippets/tex/math.lua b/lua/Snippets/tex/math.lua
index 882231a..47c21a8 100644
--- a/lua/Snippets/tex/math.lua
+++ b/lua/Snippets/tex/math.lua
@@ -44,6 +44,16 @@ return {
{ condition = tex.in_mathzone }
),
+ s({ trig = "lim", snippetType = "autosnippet" },
+ fmta(
+ '\\lim_{<>}',
+ {
+ i(1),
+ }
+ ),
+ { condition = tex.in_mathzone }
+ ),
+
s({ trig = "int", snippetType = "autosnippet" },
fmta(
'\\int_{<>}^{<>}',
@@ -150,7 +160,7 @@ return {
s({ trig = "sin", snippetType = "autosnippet" },
fmta(
- '\\sin{<>}',
+ '\\sin{(<>)}',
{
i(1),
}
@@ -160,7 +170,7 @@ return {
s({ trig = "cos", snippetType = "autosnippet" },
fmta(
- '\\cos{<>}',
+ '\\cos{(<>)}',
{
i(1),
}
@@ -170,7 +180,27 @@ return {
s({ trig = "tan", snippetType = "autosnippet" },
fmta(
- '\\tan{<>}',
+ '\\tan{(<>)}',
+ {
+ i(1),
+ }
+ ),
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = "det", snippetType = "autosnippet" },
+ fmta(
+ '\\det{(<>)}',
+ {
+ i(1),
+ }
+ ),
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = "ln", snippetType = "autosnippet" },
+ fmta(
+ '\\ln{(<>)}',
{
i(1),
}