summaryrefslogtreecommitdiffstats
path: root/Snippets/tex/greek.lua
blob: ebcabfe8fb0b7cd82aaeffcf0cb3140b80b5de21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
local in_mathzone = function()
	return vim.fn['vimtex#syntax#in_mathzone']() == 1
end

return {
	s({ trig = "pi", snippetType = "autosnippet" },
		{
			t("\\pi"),
		},
		{ condition = in_mathzone }
	),
	s({ trig = "0eps", snippetType = "autosnippet" },
		{
			t("\\epsilon_0"),
		},
		{ condition = in_mathzone }
	),
}