From 4ccaccb6b9848380a9f888211e19a5794b7b4462 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Mon, 23 Sep 2024 18:31:13 +0200 Subject: add additional snippets for math. --- lua/Snippets/tex/general.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lua/Snippets/tex/general.lua') diff --git a/lua/Snippets/tex/general.lua b/lua/Snippets/tex/general.lua index 3debd62..f50e4c2 100644 --- a/lua/Snippets/tex/general.lua +++ b/lua/Snippets/tex/general.lua @@ -28,6 +28,13 @@ return { { condition = helper.line_begin } ), + s({ trig = 'clp', snippetType = 'autosnippet' }, + { + t('\\clearpage'), + }, + { condition = helper.line_begin } + ), + s({ trig = 'qnt', snippetType = 'autosnippet' }, fmta( '\\qty{<>}{<>}', @@ -49,6 +56,15 @@ return { ) ), + s({ trig = 'snr', snippetType = 'autosnippet' }, + fmta( + '\\num{<>}', + { + i(1), + } + ) + ), + s({ trig = 'snt', snippetType = 'autosnippet' }, fmta( '\\unit{<>}', -- cgit v1.2.3