nixos-configuration/users/jrpotter/neovim/config/utils/utf8.lua

259 lines
4.0 KiB
Lua
Raw Normal View History

2024-01-24 17:47:35 +00:00
local ls = require('luasnip')
local s = ls.snippet
local t = ls.text_node
return {
-- Superscripts
s(
{ trig = [[\^+]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
s(
{ trig = [[\^-]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
s(
{ trig = [[\^0]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
s(
{ trig = [[\^1]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("¹")
),
s(
{ trig = [[\^2]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("²")
),
s(
{ trig = [[\^3]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("³")
),
s(
{ trig = [[\^4]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
s(
{ trig = [[\^5]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
s(
{ trig = [[\^6]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
s(
{ trig = [[\^7]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
s(
{ trig = [[\^8]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
s(
{ trig = [[\^9]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
2024-01-24 22:46:03 +00:00
-- Subscripts
s(
{ trig = [[\_+]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
s(
{ trig = [[\_-]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
s(
{ trig = [[\_0]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
2024-01-24 17:47:35 +00:00
s(
{ trig = [[\_1]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\_2]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\_3]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\_4]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\_5]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\_6]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\_7]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\_8]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\_9]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\_a]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\_i]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\_j]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\_k]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\_m]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\_n]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
-- Lists
s(
{ trig = [[\.]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("·")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\circ]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
-- Arrows
s(
{ trig = [[\d]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\l]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\lr]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[←r]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
2024-01-24 22:46:03 +00:00
s(
{ trig = [[\r]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\u]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
-- Greek letters
s(
{ trig = [[\a]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("α")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\b]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("β")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\g]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("γ")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\e]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("ε")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\pi]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("π")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\s]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("σ")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\z]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("ζ")
2024-01-24 22:46:03 +00:00
),
-- Other operators
s(
{ trig = [[\not]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("¬")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\and]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[αnd]], wordTrig = false },
t('')
),
2024-01-24 22:46:03 +00:00
s(
{ trig = [[\or]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\iff]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\imp]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ trig = [[\cap]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 22:46:03 +00:00
),
s(
{ 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(
{ trig = [[\leq]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 23:08:33 +00:00
),
s(
{ trig = [[←eq]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
2024-01-24 23:08:33 +00:00
s(
{ trig = [[\geq]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
2024-01-24 23:08:33 +00:00
),
s(
{ trig = [[γeq]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
s(
{ trig = [[\in]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
s(
{ trig = [[\notin]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
s(
{ trig = [[¬in]], wordTrig = false },
2024-03-05 03:10:57 +00:00
t("")
),
2024-01-24 17:47:35 +00:00
}