summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex/chemistry.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/Snippets/tex/chemistry.lua')
-rw-r--r--lua/Snippets/tex/chemistry.lua13
1 files changed, 11 insertions, 2 deletions
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),
+ }
+ )
+ ),
}