From c456976987b05a5add43d6fe8379dcec4cbde2de Mon Sep 17 00:00:00 2001 From: Nanderty Date: Wed, 29 Mar 2023 21:11:32 +0200 Subject: Snippet, fixes, additions --- lua/Snippets/tex/math.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lua/Snippets/tex/math.lua') 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 } + ), } -- cgit v1.2.3