From edd3240b6c576d3abcf37bd4a9a4934ed7209bc1 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Sun, 9 Jun 2024 12:08:40 +0200 Subject: fixes --- lua/Snippets/tex/general.lua | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'lua/Snippets/tex/general.lua') diff --git a/lua/Snippets/tex/general.lua b/lua/Snippets/tex/general.lua index 10b3c80..3debd62 100644 --- a/lua/Snippets/tex/general.lua +++ b/lua/Snippets/tex/general.lua @@ -28,9 +28,9 @@ return { { condition = helper.line_begin } ), - s({ trig = 'snt', snippetType = 'autosnippet' }, + s({ trig = 'qnt', snippetType = 'autosnippet' }, fmta( - '\\SI{<>}{<>}', + '\\qty{<>}{<>}', { i(1), i(2), @@ -38,9 +38,9 @@ return { ) ), - s({ trig = 'srt', snippetType = 'autosnippet' }, + s({ trig = 'qrt', snippetType = 'autosnippet' }, fmta( - '\\SIrange{<>}{<>}{<>}', + '\\qtyrange{<>}{<>}{<>}', { i(1), i(2), @@ -49,6 +49,15 @@ return { ) ), + s({ trig = 'snt', snippetType = 'autosnippet' }, + fmta( + '\\unit{<>}', + { + i(1), + } + ) + ), + s({ trig = 'tbf', snippetType = 'autosnippet' }, fmta( '\\textbf{<>}', @@ -85,6 +94,7 @@ return { } ) ), + s({ trig = 'spc', snippetType = 'autosnippet' }, fmta( '\\supercite{<>}', -- cgit v1.2.3