1
Fork 0

Better octodns file structure

This commit is contained in:
prescientmoon 2024-10-13 02:34:34 +02:00
parent 190dde841e
commit 35bc79265c
Signed by: prescientmoon
SSH key fingerprint: SHA256:WFp/cO76nbarETAoQcQXuV+0h7XJsEsOCI0UsyPIy6U
33 changed files with 219 additions and 381 deletions
home/features/neovim/config/lua/my

View file

@ -1,15 +0,0 @@
local A = require("my.abbreviations")
local scrap = require("scrap")
local M = {}
M.symbols = {
{ "mto", ">>=" }, -- [M]onadic [t]o
{ "oalt", "<|>" }, -- [O]peration [A]lternative
{ "omono", "<>" }, -- [O]peration [M]onoid
}
function M.setup()
A.manyLocalAbbr(scrap.expand_many(M.symbols, A.no_capitalization))
end
return M

View file

@ -1,13 +0,0 @@
local A = require("my.abbreviations")
local scrap = require("scrap")
local M = {}
M.words = {
{ "thrf", "therefore" },
}
function M.setup()
A.manyGlobalAbbr(scrap.expand_many(M.words))
end
return M

View file

@ -23,8 +23,4 @@ function M.manyGlobalAbbr(abbreviations)
end
end
function M.setup()
require("my.abbreviations.global").setup()
end
return M

View file

@ -8,26 +8,6 @@ local function nocap(d)
end
M.words = {
-- {{{ General phrases
{ "thrf", "therefore" },
{ "bcla", "by contradiction let's assume" },
{ "wlg", "without loss of generality" },
{ "tits", "that is to say," },
{ "wpbd", "we will prove the statement in both directions." },
{ "stam{,s}", "statement{}" },
{ "{ww,tt}{m,i}", "{which,this} {means,implies}" },
{ "cex{,s}", "counterexample{}" },
{ "er{t,s,r}", "{transitivity,symmetry,reflexivity}" },
-- }}}
-- {{{ Calculus & analysis
{ "ib{p,s}", "integration by {parts,substitution}" },
{ "{o,c,}nb{,h}{,s}", "{open,closed,} neighbour{,hood}{}" },
{
"{n,}{{c,}d,iv,it}ble",
"{non-,}{{continuously,} differentia,inverti,integra}ble",
},
nocap({ "lshiz{c,}", "Lipschitz{ condition,}" }),
-- }}}
-- {{{ Linear algebra
{ "rref", "reduced row echalon form" },
{ "eg{va,ve,p}{,s}", "eigen{value,vector,pair}{}" },

View file

@ -6,8 +6,7 @@ end
function M.setup()
require("lazy").setup({
require("my.plugins.themes"),
require("my.plugins.whichkey"),
require("my.themes"),
unpack(require("nix").lazy),
}, {
defaults = { lazy = true },

View file

@ -1,35 +0,0 @@
local runtime = require("my.tempest")
local M = {
"folke/which-key.nvim",
-- event = "VeryLazy",
lazy = true,
cond = runtime.blacklist("vscode"),
}
function M.config()
local wk = require("which-key")
wk.setup({
window = {
winblend = 0,
pumblend = 0,
border = "single",
},
layout = { align = "center" },
})
wk.register({
["<leader>"] = {
f = { name = "[F]iles" },
g = { name = "[G]o to" },
r = { name = "[R]ename / [R]eplace / [R]eload" },
l = { name = "[L]ocal" },
w = { name = "[W]orkspace" },
y = { name = "[Y]ank" },
s = { name = "[S]ettings" },
},
})
end
return M