Auto commit: 2024-11-08 00:00:01
This commit is contained in:
parent
47151e3875
commit
3cd39e4ad4
1 changed files with 7 additions and 0 deletions
|
@ -4,9 +4,16 @@
|
||||||
-- vim.cmd("let &t_ut=''")
|
-- vim.cmd("let &t_ut=''")
|
||||||
vim.opt_local.breakindent = true
|
vim.opt_local.breakindent = true
|
||||||
vim.opt_local.wrap = 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" }, {
|
vim.api.nvim_create_autocmd({ "FileType" }, {
|
||||||
pattern = { "markdown" },
|
pattern = { "markdown" },
|
||||||
callback = function()
|
callback = function()
|
||||||
|
md_tex()
|
||||||
vim.opt_local.breakindent = true
|
vim.opt_local.breakindent = true
|
||||||
vim.opt_local.wrap = true
|
vim.opt_local.wrap = true
|
||||||
vim.opt_local.spell = true
|
vim.opt_local.spell = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue