Change a few abbreviations
This commit is contained in:
parent
5074472017
commit
bf1cea1f44
|
@ -2,6 +2,11 @@ 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 = {
|
||||
-- {{{ General phrases
|
||||
{ "thrf", "therefore" },
|
||||
|
@ -45,7 +50,12 @@ M.words = {
|
|||
-- }}}
|
||||
-- {{{ Calculus & analysis
|
||||
{ "ib{p,s}", "integration by {parts,substitution}" },
|
||||
{ "nb{,h}{,s}", "neighbour{,hood}{}" },
|
||||
{ "{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" },
|
||||
|
@ -56,11 +66,7 @@ M.words = {
|
|||
{ "l{in,de}", "linearly {independent,dependent}" },
|
||||
{ "lcon{,s}", "linear combination{}" },
|
||||
{ "vst{,s}", "vector space{}" }, -- text vector space
|
||||
{
|
||||
"rizz", -- ok please ignore this one 💀
|
||||
"Riesz vector",
|
||||
options = A.no_capitalization,
|
||||
},
|
||||
nocap({ "rizz", "Riesz vector" }), -- 💀
|
||||
-- }}}
|
||||
-- {{{ Differential equations
|
||||
-- Note: we must add the space inside the {} in order for capitalization to work!
|
||||
|
@ -86,7 +92,7 @@ M.notation = {
|
|||
-- - "m" => -
|
||||
-- - "i" => -1
|
||||
{
|
||||
"{e,s}{{0,1,2,3,4,5,6,7,8,9,n,i,t,k},t{i,m,p}}",
|
||||
"{e,s}{{0,1,2,3,4,5,6,7,8,9,n,i,t,k,m},t{i,m,p}}",
|
||||
"{^,_}{{},{\\{-1\\},-,+}}",
|
||||
},
|
||||
-- }}}
|
||||
|
|
|
@ -111,19 +111,20 @@ M.unicode = {
|
|||
{ "Theta", "Θ" },
|
||||
{ "iota", "ι" },
|
||||
{ "kappa", "κ" },
|
||||
{ "lambda", "λ" },
|
||||
{ "Lambda", "Λ" },
|
||||
{ "lam", "λ" },
|
||||
{ "Lam", "Λ" },
|
||||
{ "mu", "μ" },
|
||||
{ "nu", "ν" },
|
||||
{ "xi", "ξ" },
|
||||
{ "pi", "π" },
|
||||
{ "Pi", "∏" },
|
||||
{ "rho", "ρ" },
|
||||
{ "sigma", "ς" },
|
||||
{ "sigma", "σ" },
|
||||
{ "Sigma", "Σ" },
|
||||
{ "tau", "τ" },
|
||||
{ "upsilon", "υ" },
|
||||
{ "phi", "ϕ" },
|
||||
{ "ophi", "φ" }, -- open phi?
|
||||
{ "Phi", "Φ" },
|
||||
{ "chi", "χ" },
|
||||
{ "psi", "ψ" },
|
||||
|
@ -133,10 +134,13 @@ M.unicode = {
|
|||
-- }}}
|
||||
-- {{{ Common symbols
|
||||
{ "iinf", "∞" },
|
||||
{ "niinf", "-∞" },
|
||||
{ "star", "⋆" },
|
||||
{ "nabla", "∇" },
|
||||
{ "diamond", "⋄" },
|
||||
{ "tto", "→" },
|
||||
{ "ttoo", "⟶" },
|
||||
{ "mapto", "↦" },
|
||||
-- }}}
|
||||
-- {{{ Brackets
|
||||
{ "langle", "⟨" },
|
||||
|
|
|
@ -29,6 +29,7 @@ let
|
|||
joinspaces = false; # No double spaces with join (mapped to qj in my config)
|
||||
list = true; # Show some invisible characters
|
||||
cmdheight = 0; # Hide command line when it's not getting used
|
||||
spell = true; # Spell checker
|
||||
|
||||
# tcqj are there by default, and "r" automatically continues comments on enter
|
||||
formatoptions = "tcqjr";
|
||||
|
@ -134,10 +135,15 @@ let
|
|||
(nmap "<Leader>a" "<C-^>" "[A]lternate file")
|
||||
(unmap "<C-^>")
|
||||
(nmap "Q" ":wqa<cr>" "Save all files and [q]uit")
|
||||
(nmap "<leader>rw" ":%s/<C-r><C-w>/" "[R]eplace [w]ord in file")
|
||||
(nmap "<leader>rw"
|
||||
":%s/<C-r><C-w>/"
|
||||
"[R]eplace [w]ord in file")
|
||||
(nmap "<leader>sw"
|
||||
(lua ''require("my.helpers.wrap").toggle'')
|
||||
"toggle word [w]rap")
|
||||
(nmap "<leader>ss"
|
||||
(thunk /* lua */ "vim.opt.spell = not vim.o.spell")
|
||||
"toggle [s]pell checker")
|
||||
# }}}
|
||||
];
|
||||
# }}}
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
# }}}
|
||||
# {{{ Clis
|
||||
# sherlock # Search for usernames across different websites
|
||||
catgirl # irc client
|
||||
# }}}
|
||||
# {{{ Misc
|
||||
obsidian # Notes
|
||||
|
|
Loading…
Reference in a new issue