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