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