Use vimtex for latex highlighting I guess (might reverse this later)
This commit is contained in:
parent
b7672414dd
commit
b9ce1d1f87
|
@ -2,20 +2,24 @@ local A = require("my.abbreviations")
|
||||||
|
|
||||||
require("my.helpers.wrapMovement").setup()
|
require("my.helpers.wrapMovement").setup()
|
||||||
|
|
||||||
vim.opt.conceallevel = 1
|
vim.opt.conceallevel = 0
|
||||||
vim.opt.wrap = true
|
vim.opt.wrap = true
|
||||||
|
|
||||||
vim.g.tex_conceal = "abdmg"
|
vim.g.tex_conceal = "abdmg"
|
||||||
|
-- vim.g.vimtex_syntax_conceal = 1
|
||||||
|
vim.g.vimtex_imaps_enabled = 0
|
||||||
|
|
||||||
local abbreviations = {
|
local abbreviations = {
|
||||||
-- Greek chars
|
-- Greek chars
|
||||||
{ "eps", "\\epsilon" },
|
{ "eps", "\\epsilon" },
|
||||||
{ "delta", "\\delta" },
|
{ "delta", "\\delta" },
|
||||||
|
{ "Delta", "\\Delta" },
|
||||||
{ "pi", "\\pi" },
|
{ "pi", "\\pi" },
|
||||||
{ "psi", "\\psi" },
|
{ "psi", "\\psi" },
|
||||||
{ "psi", "\\psi" },
|
{ "psi", "\\psi" },
|
||||||
{ "alpha", "\\alpha" },
|
{ "alpha", "\\alpha" },
|
||||||
{ "beta", "\\beta" },
|
{ "beta", "\\beta" },
|
||||||
|
{ "theta", "\\theta" },
|
||||||
{ "gamma", "\\gamma" },
|
{ "gamma", "\\gamma" },
|
||||||
{ "nuls", "\\varnothing" },
|
{ "nuls", "\\varnothing" },
|
||||||
|
|
||||||
|
@ -53,6 +57,8 @@ local abbreviations = {
|
||||||
{ "dhx", "h'(x)" },
|
{ "dhx", "h'(x)" },
|
||||||
|
|
||||||
-- Basic commands
|
-- Basic commands
|
||||||
|
{ "mangle", "\\measuredangle" },
|
||||||
|
{ "aangle", "\\angle" },
|
||||||
{ "creq", "\\\\&=" },
|
{ "creq", "\\\\&=" },
|
||||||
{ "aeq", "&=" },
|
{ "aeq", "&=" },
|
||||||
{ "leq", "\\leq" },
|
{ "leq", "\\leq" },
|
||||||
|
|
|
@ -12,7 +12,7 @@ function M.setup()
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
|
||||||
disable = { "kotlin", "tex" },
|
disable = { "kotlin", "tex", "latex" },
|
||||||
|
|
||||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
-- 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).
|
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||||
|
|
Loading…
Reference in a new issue