summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex/math.lua
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2023-03-29 21:11:32 +0200
committerNanderty <psopka@sopka.ch>2023-03-29 21:11:32 +0200
commitc456976987b05a5add43d6fe8379dcec4cbde2de (patch)
treed5c3cf4d9cfa549c8c3fb8b3e0d6132e05faa433 /lua/Snippets/tex/math.lua
parent4cf61987eebf88f3878e1b979d83d14de730a8db (diff)
downloadneovim-config-c456976987b05a5add43d6fe8379dcec4cbde2de.tar.gz
neovim-config-c456976987b05a5add43d6fe8379dcec4cbde2de.tar.bz2
neovim-config-c456976987b05a5add43d6fe8379dcec4cbde2de.zip
Snippet, fixes, additions
Diffstat (limited to 'lua/Snippets/tex/math.lua')
-rw-r--r--lua/Snippets/tex/math.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/Snippets/tex/math.lua b/lua/Snippets/tex/math.lua
index 670ed80..9d50cb0 100644
--- a/lua/Snippets/tex/math.lua
+++ b/lua/Snippets/tex/math.lua
@@ -22,8 +22,25 @@ return {
),
{ condition = tex.in_mathzone }
),
+ s({ trig = "tex", snippetType = "autosnippet" },
+ fmta(
+ '\\text{<>}',
+ {
+ i(1),
+ }
+ ),
+ { condition = tex.in_mathzone }
+ ),
s({ trig = 'df', snippetType = 'autosnippet' },
{ t('\\diff ') },
{ condition = tex.in_mathzone }
),
+ s({ trig = 'ple', snippetType = 'autosnippet' },
+ { t('\\left(') },
+ { condition = tex.in_mathzone }
+ ),
+ s({ trig = 'pri', snippetType = 'autosnippet' },
+ { t('\\right)') },
+ { condition = tex.in_mathzone }
+ ),
}