diff options
Diffstat (limited to 'lua/Snippets/tex/chemistry.lua')
| -rw-r--r-- | lua/Snippets/tex/chemistry.lua | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lua/Snippets/tex/chemistry.lua b/lua/Snippets/tex/chemistry.lua index ee73154..a75536f 100644 --- a/lua/Snippets/tex/chemistry.lua +++ b/lua/Snippets/tex/chemistry.lua @@ -2,7 +2,7 @@ local tex = require('Snippets.luasniphelperslatex') local helper = require('Snippets.luasniphelpers') return { - s({ trig = 'chg', snippetType = 'autosnippet' }, + s({ trig = 'chmr', snippetType = 'autosnippet' }, fmta( '\\ch{ <> ->>[ <> ][ <> ] <> }\\par', { @@ -14,7 +14,7 @@ return { ) ), - s({ trig = 'chs', snippetType = 'autosnippet' }, + s({ trig = 'chmi', snippetType = 'autosnippet' }, fmta( '\\ch{ <> }', { @@ -22,4 +22,14 @@ return { } ) ), + + s({ trig = 'chrg', snippetType = 'autosnippet' }, + fmta( + '\\charge{<>}{<>}', + { + i(1), + i(2), + } + ) + ), } |
