summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex/math.lua
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2023-04-22 12:10:01 +0200
committerNanderty <psopka@sopka.ch>2023-04-22 12:10:01 +0200
commitd37f266e7719a67faa99b3ec62e9a51f0033cfc2 (patch)
tree7e667b5462d88ae9a593378d3a919349c027153b /lua/Snippets/tex/math.lua
parent9b3ab411798c36f4402ecb34eb77a0ee86a03447 (diff)
downloadneovim-config-d37f266e7719a67faa99b3ec62e9a51f0033cfc2.tar.gz
neovim-config-d37f266e7719a67faa99b3ec62e9a51f0033cfc2.tar.bz2
neovim-config-d37f266e7719a67faa99b3ec62e9a51f0033cfc2.zip
starter verbesserungen
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(
'_{<>}',