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

View file

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

View file

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