Auto commit: 2024-11-08 00:00:01

This commit is contained in:
Daniel Fichtinger 2024-11-08 00:00:01 -05:00
parent 47151e3875
commit 3cd39e4ad4

View file

@ -4,9 +4,16 @@
-- vim.cmd("let &t_ut=''")
vim.opt_local.breakindent = true
vim.opt_local.wrap = true
local md_tex = function()
vim.cmd("syn region markdownMathInline matchgroup=texMathZone start=/$/ end=/$/ contains=@texMath")
vim.cmd("syn match markdownMathInline '$[^$].{-}$' contains=@texMath")
vim.cmd("syn region markdownMathBlock matchgroup=texMathZone start=/$$/ end=/$$/ contains=@texMath")
vim.cmd("syn include @texMath syntax/tex.vim")
end
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = { "markdown" },
callback = function()
md_tex()
vim.opt_local.breakindent = true
vim.opt_local.wrap = true
vim.opt_local.spell = true