2023-02-19 02:41:22 +01:00
|
|
|
local A = require("my.abbreviations")
|
|
|
|
local scrap = require("scrap")
|
|
|
|
local M = {}
|
|
|
|
|
2023-12-02 00:46:56 +01:00
|
|
|
-- {{{ Ascii
|
|
|
|
M.ascii = {
|
|
|
|
{ "tto", "->" }, -- [t]o
|
2023-02-19 02:41:22 +01:00
|
|
|
{ "ffrom", "<-" }, -- [f]rom
|
2023-12-02 00:46:56 +01:00
|
|
|
{ "iip", "=>" }, -- [i]t [i]m[p]lies
|
|
|
|
{ "iib", "<=" }, -- [i]t's [i]mplied [b]ly
|
2023-02-19 02:41:22 +01:00
|
|
|
|
2023-12-02 00:46:56 +01:00
|
|
|
{ "leq", "<=" }, -- [l]ess than or [e][q]ual
|
|
|
|
{ "geq", ">=" }, -- [g]reater than or [e][q]ual
|
|
|
|
{ "seq", "=" }, -- [s]ingle [e][q]ual
|
|
|
|
{ "deq", "==" }, -- [d]ouble [e][q]ual
|
|
|
|
{ "land", "/\\" }, -- [l]ogial [a][n][d]
|
|
|
|
{ "lor", "\\/" }, -- [l]ogial [o][r]
|
2023-02-19 02:41:22 +01:00
|
|
|
}
|
2023-12-02 00:46:56 +01:00
|
|
|
-- }}}
|
2023-02-19 02:41:22 +01:00
|
|
|
|
|
|
|
M.words = {
|
|
|
|
{ "thrf", "therefore" },
|
|
|
|
}
|
|
|
|
|
|
|
|
function M.setup()
|
|
|
|
A.manyGlobalAbbr(scrap.expand_many(M.words))
|
2023-12-02 00:46:56 +01:00
|
|
|
A.manyGlobalAbbr(scrap.expand_many(M.ascii, { capitalized = false }))
|
2023-02-19 02:41:22 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
return M
|