1
Fork 0

Update invidious and some other nvim stuff

This commit is contained in:
prescientmoon 2024-04-27 21:38:06 +02:00
parent e58eb41fb1
commit 3c1f1d71f3
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
15 changed files with 170 additions and 146 deletions
home/features/neovim/config/lua/my/abbreviations

View file

@ -2,31 +2,14 @@ local A = require("my.abbreviations")
local scrap = require("scrap")
local M = {}
M.symols = {
M.symbols = {
{ "mto", ">>=" }, -- [M]onadic [t]o
{ "oalt", "<|>" }, -- [O]peration [A]lternative
{ "omono", "<>" }, -- [O]peration [M]onoid
}
M.types = {
{ "tarr", "Array" },
{ "tlis", "List" },
{ "tmay", "Maybe" },
{ "teff", "Effect" },
{ "tio", "IO" },
{ "taff", "Aff" },
{ "tnea", "NonEmptyArray" },
}
M.functions = {
{ "tfold", "toUnfoldable" }, -- [T]o [f]oldable
{ "ffold", "fromFoldable" }, -- [F]rom un[f]oldable
}
function M.setup()
A.manyLocalAbbr(scrap.expand_many(M.types, A.no_capitalization))
A.manyLocalAbbr(scrap.expand_many(M.symols, A.no_capitalization))
A.manyLocalAbbr(scrap.expand_many(M.functions, A.no_capitalization))
A.manyLocalAbbr(scrap.expand_many(M.symbols, A.no_capitalization))
end
return M

View file

@ -52,26 +52,8 @@ M.words = {
-- }}}
}
M.notation = {
-- {{{ Exponents and subscripts:
-- {operation}{argument}
-- - operation = e (exponent) | s (subscript)
-- - argument = t{special} | {basic}
-- - basic = 0-9|n|i|t|k
-- - special =
-- - "p" => +
-- - "m" => -
-- - "i" => -1
{
"{e,s}{{0,1,2,3,4,5,6,7,8,9,n,i,t,k,m},t{i,m,p}}",
"{^,_}{{},{\\{-1\\},-,+}}",
},
-- }}}
}
function M.setup()
A.manyGlobalAbbr(scrap.expand_many(M.words))
A.manyGlobalAbbr(scrap.expand_many(M.notation, { capitalized = false }))
end
return M

View file

@ -2,7 +2,6 @@ local A = require("my.abbreviations")
local scrap = require("scrap")
local M = {}
-- {{{ Unicode
M.unicode = {
-- {{{ Logic
{ "frl", "" }, -- [f]o[r]al[l]
@ -13,9 +12,6 @@ M.unicode = {
{ "Lor", "" }, -- [l]ogical [or]
{ "bot", "" }, -- false
{ "top", "" }, -- true
{ "iip", "" }, -- [i]t [i]m[p]lies
{ "iib", "" }, -- [i]t's [i]mplied [b]y
{ "iff", "" }, -- [if] and only i[f]
{ "lneg", "¬" }, -- [l]ogical [neg]ation
-- }}}
-- {{{ Set theory
@ -75,22 +71,17 @@ M.unicode = {
{ "cbrt", "" }, -- cube root
-- }}}
-- {{{ Integrals
{ "int", "" }, -- integral
{ "iint", "" }, -- integral
{ "iiint", "" }, -- integral
{ "pint", "" }, -- integral
{ "piint", "" }, -- integral
{ "piiint", "" }, -- integral
{ "int", "" },
{ "iint", "" },
{ "iiint", "" },
{ "pint", "" },
{ "piint", "" },
{ "piiint", "" },
-- }}}
-- {{{ Common relations
{ "sim", "" }, -- similarity
{ "simeq", "" },
{ "cong", "" }, -- congruence
{ "defas", "" }, -- defined as
{ "eq", "=" }, -- [eq]ual
{ "neq", "" }, -- [n]ot [eq]ual
{ "leq", "" }, -- [l]ess than or [e][q]ual
{ "geq", "" }, -- [g]reater than or [e][q]ual
{ "iin", "" }, -- [I]ncluded [i][n]
{ "nin", "" }, -- [n]ot included [i][n]
@ -145,12 +136,7 @@ M.unicode = {
{ "rquare", "" }, -- rounded square
{ "diam", "" },
-- }}}
-- {{{ Brackets
{ "langle", "" },
{ "rangle", "" },
-- }}}
}
-- }}}
function M.setup()
A.manyLocalAbbr(scrap.expand_many(M.unicode, { capitalized = false }))