AutoYADM commit: 2024-12-21 01:00:01

This commit is contained in:
Daniel Fichtinger 2024-12-21 01:00:01 -05:00
parent 02fd92ff1d
commit 128614d200
2 changed files with 8 additions and 5 deletions

View file

@ -17,8 +17,9 @@ vim.api.nvim_create_autocmd("VimEnter", {
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown", pattern = "markdown",
callback = function() callback = function()
vim.opt_local.breakindent = true if vim.g.md_tex then
vim.cmd([[ vim.opt_local.breakindent = true
vim.cmd([[
syn region mathBlock start=/\$\$/ end=/\$\$/ contains=@tex syn region mathBlock start=/\$\$/ end=/\$\$/ contains=@tex
" inline math " inline math
syn match mathInline '\$[^$].\{-}\$' contains=@tex syn match mathInline '\$[^$].\{-}\$' contains=@tex
@ -27,8 +28,10 @@ vim.api.nvim_create_autocmd("FileType", {
hi def link mathBlock Statement hi def link mathBlock Statement
hi def link mathInline Statement hi def link mathInline Statement
]]) ]])
end
end, end,
}) })
vim.api.nvim_create_autocmd({ "FileType" }, { vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = { "markdown" }, pattern = { "markdown" },
callback = function() callback = function()

View file

@ -6,9 +6,9 @@ return {
enabled = true, enabled = true,
}, },
code = { code = {
sign = false, -- sign = false,
width = "block", -- width = "block",
right_pad = 1, -- right_pad = 1,
}, },
heading = { heading = {
-- width = "block", -- width = "block",