From 063c2d97218cdabe0634054a8038cd6b5c9a9a12 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Sat, 25 Mar 2023 18:16:24 +0100 Subject: cleanup, snippets --- Snippets/tex/greek.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Snippets/tex/greek.lua (limited to 'Snippets/tex/greek.lua') diff --git a/Snippets/tex/greek.lua b/Snippets/tex/greek.lua new file mode 100644 index 0000000..ebcabfe --- /dev/null +++ b/Snippets/tex/greek.lua @@ -0,0 +1,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 } + ), +} -- cgit v1.2.3