1
Fork 0

Port more abbreviations to miros

This commit is contained in:
prescientmoon 2024-10-13 08:00:44 +02:00
parent 35bc79265c
commit 3c99db8650
Signed by: prescientmoon
SSH key fingerprint: SHA256:WFp/cO76nbarETAoQcQXuV+0h7XJsEsOCI0UsyPIy6U
8 changed files with 107 additions and 197 deletions
home/features/neovim/config/lua/my/abbreviations

View file

@ -1,39 +0,0 @@
local A = require("my.abbreviations")
local scrap = require("scrap")
local M = {}
local function nocap(d)
d.options = A.no_capitalization
return d
end
M.words = {
-- {{{ Linear algebra
{ "rref", "reduced row echalon form" },
{ "eg{va,ve,p}{,s}", "eigen{value,vector,pair}{}" },
{ "mx{,s}", "matri{x,ces}" },
{ "dete{,s}", "determinant{}" },
{ "ort{n,g}", "orto{normal,gonal}" },
{ "l{in,de}", "linearly {independent,dependent}" },
{ "lcon{,s}", "linear combination{}" },
{ "vst{,s}", "vector space{}" }, -- text vector space
nocap({ "rizz", "Riesz vector" }), -- 💀
-- }}}
-- {{{ Differential equations
-- Note: we must add the space inside the {} in order for capitalization to work!
{
"{{s,o,l},}deq{s,}",
"{{scalar,ordinary,linear} ,}differential equation{}",
},
-- }}}
-- {{{ Graph theory
{ "vx{,s}", "vert{ex,ices}" },
{ "edg{,s}", "edge{}" },
-- }}}
}
function M.setup()
A.manyGlobalAbbr(scrap.expand_many(M.words))
end
return M