diff options
| author | Nanderty <psopka@sopka.ch> | 2023-04-22 12:10:01 +0200 |
|---|---|---|
| committer | Nanderty <psopka@sopka.ch> | 2023-04-22 12:10:01 +0200 |
| commit | d37f266e7719a67faa99b3ec62e9a51f0033cfc2 (patch) | |
| tree | 7e667b5462d88ae9a593378d3a919349c027153b /lua/Snippets/tex/math.lua | |
| parent | 9b3ab411798c36f4402ecb34eb77a0ee86a03447 (diff) | |
| download | neovim-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.lua | 39 |
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( '_{<>}', |
