2024-01-24 17:47:35 +00:00
|
|
|
|
local ls = require('luasnip')
|
|
|
|
|
|
|
|
|
|
local s = ls.snippet
|
|
|
|
|
local t = ls.text_node
|
|
|
|
|
|
|
|
|
|
return {
|
2024-01-25 20:32:46 +00:00
|
|
|
|
-- Superscripts
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\^+]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("⁺")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\^-]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("⁻")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\^0]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("⁰")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\^1]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("¹")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\^2]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("²")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\^3]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("³")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\^4]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("⁴")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\^5]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("⁵")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\^6]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("⁶")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\^7]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("⁷")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\^8]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("⁸")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\^9]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("⁹")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
|
|
|
|
|
2024-01-24 22:46:03 +00:00
|
|
|
|
-- Subscripts
|
2024-01-25 20:32:46 +00:00
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_+]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("₊")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_-]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("₋")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_0]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("₀")
|
2024-01-25 20:32:46 +00:00
|
|
|
|
),
|
2024-01-24 17:47:35 +00:00
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_1]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("₁")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_2]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("₂")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_3]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("₃")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_4]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("₄")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_5]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("₅")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_6]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("₆")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_7]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("₇")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_8]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("₈")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_9]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("₉")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_a]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("ₐ")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_i]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("ᵢ")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_j]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("ⱼ")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_k]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("ₖ")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_m]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("ₘ")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\_n]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("ₙ")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
-- Lists
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\.]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("·")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\circ]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("∘")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
-- Arrows
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\d]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("↓")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\l]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("←")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\lr]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("↔")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
2024-01-26 00:47:12 +00:00
|
|
|
|
s(
|
|
|
|
|
{ trig = [[←r]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("↔")
|
2024-01-26 00:47:12 +00:00
|
|
|
|
),
|
2024-01-24 22:46:03 +00:00
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\r]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("→")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\u]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("↑")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
-- Greek letters
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\a]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("α")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\b]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("β")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\g]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("γ")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\e]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("ε")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\pi]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("π")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\s]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("σ")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\z]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("ζ")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
-- Other operators
|
|
|
|
|
s(
|
2024-01-26 00:47:12 +00:00
|
|
|
|
{ trig = [[\not]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("¬")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\and]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("∧")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
2024-01-26 00:47:12 +00:00
|
|
|
|
s(
|
|
|
|
|
{ trig = [[αnd]], wordTrig = false },
|
|
|
|
|
t('∧')
|
|
|
|
|
),
|
2024-01-24 22:46:03 +00:00
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\or]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("∨")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\iff]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("⇔")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\imp]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("⇒")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\cap]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("∩")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\cup]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("∪")
|
2024-01-24 22:46:03 +00:00
|
|
|
|
),
|
2024-01-24 23:08:33 +00:00
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\leq]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("≤")
|
2024-01-24 23:08:33 +00:00
|
|
|
|
),
|
2024-01-26 00:47:12 +00:00
|
|
|
|
s(
|
|
|
|
|
{ trig = [[←eq]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("≤")
|
2024-01-26 00:47:12 +00:00
|
|
|
|
),
|
2024-01-24 23:08:33 +00:00
|
|
|
|
s(
|
2024-01-25 23:30:55 +00:00
|
|
|
|
{ trig = [[\geq]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("≥")
|
2024-01-24 23:08:33 +00:00
|
|
|
|
),
|
2024-01-26 00:47:12 +00:00
|
|
|
|
s(
|
|
|
|
|
{ trig = [[γeq]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("≥")
|
2024-01-26 00:47:12 +00:00
|
|
|
|
),
|
2024-01-25 23:30:55 +00:00
|
|
|
|
s(
|
|
|
|
|
{ trig = [[\in]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("∈")
|
2024-01-25 23:30:55 +00:00
|
|
|
|
),
|
|
|
|
|
s(
|
|
|
|
|
{ trig = [[\notin]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("∉")
|
2024-01-25 23:30:55 +00:00
|
|
|
|
),
|
2024-01-26 00:47:12 +00:00
|
|
|
|
s(
|
|
|
|
|
{ trig = [[¬in]], wordTrig = false },
|
2024-03-05 03:10:57 +00:00
|
|
|
|
t("∉")
|
2024-01-26 00:47:12 +00:00
|
|
|
|
),
|
2024-01-24 17:47:35 +00:00
|
|
|
|
}
|