summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex/chemistry.lua
blob: a75536f3e02a6aee7ea29127d81f6314cd3fc3e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
local tex = require('Snippets.luasniphelperslatex')
local helper = require('Snippets.luasniphelpers')

return {
	s({ trig = 'chmr', snippetType = 'autosnippet' },
		fmta(
			'\\ch{ <> ->>[ <> ][ <> ] <> }\\par',
			{
				i(1),
				i(2),
				i(3),
				i(4),
			}
		)
	),

	s({ trig = 'chmi', snippetType = 'autosnippet' },
		fmta(
			'\\ch{ <> }',
			{
				i(1),
			}
		)
	),

	s({ trig = 'chrg', snippetType = 'autosnippet' },
		fmta(
			'\\charge{<>}{<>}',
			{
				i(1),
				i(2),
			}
		)
	),
}