1
Fork 0

Fixed latex invalid abbreviations

This commit is contained in:
Matei Adriel 2022-10-13 01:33:24 +02:00
parent a6fb4ffbb2
commit c330e2819d
3 changed files with 6 additions and 7 deletions

View file

@ -17,7 +17,6 @@ local abbreviations = {
{ "Delta", "\\Delta" }, { "Delta", "\\Delta" },
{ "pi", "\\pi" }, { "pi", "\\pi" },
{ "psi", "\\psi" }, { "psi", "\\psi" },
{ "psi", "\\psi" },
{ "alpha", "\\alpha" }, { "alpha", "\\alpha" },
{ "beta", "\\beta" }, { "beta", "\\beta" },
{ "theta", "\\theta" }, { "theta", "\\theta" },
@ -105,8 +104,9 @@ local abbreviations = {
{ "smul", "\\times" }, { "smul", "\\times" },
{ "texpl", "&& \\text{}" }, { "texpl", "&& \\text{}" },
{ "card", "\\#" }, { "card", "\\#" },
{ "div", "|" }, { "div", "\\|" },
{ "ndiv", "\\not|\\:" }, { "ndiv", "\\not\\|\\:" },
-- words -- words
{ "rref", "reduced row echalon form" } { "rref", "reduced row echalon form" }
@ -117,7 +117,5 @@ local abolishAbbreviations = {
{ "ib{p,s}", "integration by {parts,substitution}" } { "ib{p,s}", "integration by {parts,substitution}" }
} }
AB.abolishMany(abolishAbbreviations)
A.manyLocalAbbr(abbreviations) A.manyLocalAbbr(abbreviations)
AB.abolishMany(abolishAbbreviations)

View file

@ -2,7 +2,7 @@ local M = {}
function M.localAbbr(lhs, rhs) function M.localAbbr(lhs, rhs)
-- Create abbreviation -- Create abbreviation
vim.cmd(":iabbrev <buffer>" .. lhs .. " " .. rhs) vim.cmd(":iabbrev <buffer> " .. lhs .. " " .. rhs)
end end
function M.manyLocalAbbr(abbreviations) function M.manyLocalAbbr(abbreviations)

View file

@ -7,6 +7,7 @@ function M.setup()
"elixir", "fish", "html", "json", "latex", "python", "rust", "scss", "elixir", "fish", "html", "json", "latex", "python", "rust", "scss",
"toml", "tsx", "vim", "yaml", "nix", "kotlin" "toml", "tsx", "vim", "yaml", "nix", "kotlin"
}, },
disable = { "tex", "latex" },
sync_install = false, sync_install = false,
indent = { enable = true }, indent = { enable = true },
highlight = { highlight = {