From d37f266e7719a67faa99b3ec62e9a51f0033cfc2 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Sat, 22 Apr 2023 12:10:01 +0200 Subject: starter verbesserungen --- lua/Snippets/tex/chemistry.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'lua/Snippets/tex/chemistry.lua') diff --git a/lua/Snippets/tex/chemistry.lua b/lua/Snippets/tex/chemistry.lua index 5c4742c..ee73154 100644 --- a/lua/Snippets/tex/chemistry.lua +++ b/lua/Snippets/tex/chemistry.lua @@ -2,9 +2,9 @@ local tex = require('Snippets.luasniphelperslatex') local helper = require('Snippets.luasniphelpers') return { - s({ trig = ',,', snippetType = 'autosnippet' }, + s({ trig = 'chg', snippetType = 'autosnippet' }, fmta( - '\\ch{<>->>[<>][<>]<>}\\par', + '\\ch{ <> ->>[ <> ][ <> ] <> }\\par', { i(1), i(2), @@ -13,4 +13,13 @@ return { } ) ), + + s({ trig = 'chs', snippetType = 'autosnippet' }, + fmta( + '\\ch{ <> }', + { + i(1), + } + ) + ), } -- cgit v1.2.3