1
Fork 0

Use vimtex for latex highlighting I guess (might reverse this later)

This commit is contained in:
Matei Adriel 2022-09-26 22:54:16 +02:00
parent b7672414dd
commit b9ce1d1f87
2 changed files with 8 additions and 2 deletions

View file

@ -2,20 +2,24 @@ local A = require("my.abbreviations")
require("my.helpers.wrapMovement").setup()
vim.opt.conceallevel = 1
vim.opt.conceallevel = 0
vim.opt.wrap = true
vim.g.tex_conceal = "abdmg"
-- vim.g.vimtex_syntax_conceal = 1
vim.g.vimtex_imaps_enabled = 0
local abbreviations = {
-- Greek chars
{ "eps", "\\epsilon" },
{ "delta", "\\delta" },
{ "Delta", "\\Delta" },
{ "pi", "\\pi" },
{ "psi", "\\psi" },
{ "psi", "\\psi" },
{ "alpha", "\\alpha" },
{ "beta", "\\beta" },
{ "theta", "\\theta" },
{ "gamma", "\\gamma" },
{ "nuls", "\\varnothing" },
@ -53,6 +57,8 @@ local abbreviations = {
{ "dhx", "h'(x)" },
-- Basic commands
{ "mangle", "\\measuredangle" },
{ "aangle", "\\angle" },
{ "creq", "\\\\&=" },
{ "aeq", "&=" },
{ "leq", "\\leq" },

View file

@ -12,7 +12,7 @@ function M.setup()
highlight = {
enable = true,
disable = { "kotlin", "tex" },
disable = { "kotlin", "tex", "latex" },
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).