Lots of latex stuff and idk what else (timezone change!)
This commit is contained in:
parent
b1ec69ad9d
commit
f17b922131
31 changed files with 398 additions and 67 deletions
dotfiles/neovim/ftplugin
49
dotfiles/neovim/ftplugin/tex.lua
Normal file
49
dotfiles/neovim/ftplugin/tex.lua
Normal file
|
@ -0,0 +1,49 @@
|
|||
local A = require("my.abbreviations")
|
||||
|
||||
vim.opt.conceallevel = 1
|
||||
vim.opt.wrap = true
|
||||
|
||||
vim.g.tex_conceal = "abdmg"
|
||||
|
||||
local abbreviations = {
|
||||
-- Greek chars
|
||||
{ "eps", "\\epsilon" },
|
||||
{ "delta", "\\delta" },
|
||||
|
||||
-- Exponents
|
||||
{ "en1", "^{-1}" },
|
||||
{ "e1", "^{0}" },
|
||||
{ "e1", "^{1}" },
|
||||
{ "e2", "^{2}" },
|
||||
{ "e3", "^{3}" },
|
||||
{ "e4", "^{4}" },
|
||||
{ "en", "^{n}" },
|
||||
|
||||
-- Subscripts
|
||||
{ "s0", "_{0}" },
|
||||
{ "s1", "_{1}" },
|
||||
{ "s2", "_{2}" },
|
||||
{ "s3", "_{3}" },
|
||||
{ "s4", "_{4}" },
|
||||
{ "sn", "_{n}" },
|
||||
|
||||
-- Function calls
|
||||
{ "fx", "f(x)" },
|
||||
{ "gx", "g(x)" },
|
||||
{ "hx", "h(x)" },
|
||||
{ "Px", "P(x)" },
|
||||
|
||||
-- Basic commands
|
||||
{ "leq", "\\leq" },
|
||||
{ "neq", "\\neq" },
|
||||
{ "nin", "\\not\\in" },
|
||||
{ "iin", "\\in" },
|
||||
{ "tto", "\\to" },
|
||||
{ "iff", "\\iff" },
|
||||
{ "land", "\\land" },
|
||||
{ "lor", "\\lor" },
|
||||
{ "frl", "\\forall" },
|
||||
{ "exs", "\\exists" },
|
||||
}
|
||||
|
||||
A.manyLocalAbbr(abbreviations)
|
Loading…
Add table
Add a link
Reference in a new issue