2025-09-21 20:43:38 +10:00
|
|
|
local ls = require("luasnip")
|
|
|
|
|
local s = ls.snippet
|
|
|
|
|
local t = ls.text_node
|
|
|
|
|
local tex = require("util.latex")
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
s({ trig = "alp", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("alpha"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Alp", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Alpha"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = ";a", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("alpha"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "beta", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("beta"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = ";b", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("beta"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Beta", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Beta"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "gam", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("gamma"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = ";c", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("gamma"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Gam", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Gamma"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "del", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("delta"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = ";d", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("delta"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Del", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Delta"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "eps", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("epsilon"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "vps", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("varepsilon"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Eps", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Epsilon"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "zeta", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("zeta"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
2025-09-30 22:59:47 +10:00
|
|
|
s({ trig = ";z", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("zeta"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
2025-09-21 20:43:38 +10:00
|
|
|
s({ trig = "Zeta", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Zeta"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "eta", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("eta"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Eta", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Eta"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "the", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("theta"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "The", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Theta"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "iot", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("iota"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Iot", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Iota"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "kap", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("kappa"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Kap", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Kappa"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "lam", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("lambda"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Lam", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Lambda"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "mu", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("mu"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Mu", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Mu"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "nu", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("nu"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Nu", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Nu"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
-- s({ trig = "xi", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
-- t("xi"),
|
|
|
|
|
-- }, { condition = tex.in_mathzone }),
|
|
|
|
|
-- s({ trig = "Xi", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
-- t("Xi"),
|
|
|
|
|
-- }, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "omi", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("omicron"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "pi", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("pi"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "pii", snippetType = "autosnippet", wordTrig = false, priority = 2000 }, {
|
|
|
|
|
t("p_i"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Pi", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Pi"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "rho", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("rho"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Rho", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Rho"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "sig", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("sigma"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Sig", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Sigma"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "tau", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("tau"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Tau", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Tau"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "ups", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("ups"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Ups", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Ups"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "phi", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("phi"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Phi", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Phi"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "vhi", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("varphi"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Vhi", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Varphi"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "chi", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("chi"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Chi", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Chi"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "psi", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("psi"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Psi", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Psi"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "ome", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("omega"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
s({ trig = "Ome", snippetType = "autosnippet", wordTrig = false }, {
|
|
|
|
|
t("Omega"),
|
|
|
|
|
}, { condition = tex.in_mathzone }),
|
|
|
|
|
}
|