diff --git a/.config/nvim/lua/config/autocmds.lua b/.config/nvim/lua/config/autocmds.lua index 42f6651e..65dcefce 100644 --- a/.config/nvim/lua/config/autocmds.lua +++ b/.config/nvim/lua/config/autocmds.lua @@ -18,6 +18,13 @@ vim.api.nvim_create_autocmd("FileType", { syn include @tex syntax/tex.vim hi def link mathBlock Statement hi def link mathInline Statement + let g:vimtex_syntax_custom_cmds = [ + " \ {'name': 'vct', 'mathmode': 1, 'argstyle': 'bold'}, + " \ {'name': 'R', 'cmdre': 'R>', 'mathmode': 1, 'concealchar': 'ℝ'}, + \ {'name': 'R', 'mathmode': 1, 'concealchar': 'ℝ'}, + " \ {'name': 'mathnote', 'mathmode': 1, 'nextgroup': 'texMathTextArg'}, + " \ {'name': 'nospell', 'argspell': 0}, + \] ]]) -- vim.g.vimtex_syntax_conceal = { -- math = 1, diff --git a/.config/nvim/lua/plugins/vimtex.lua b/.config/nvim/lua/plugins/vimtex.lua index 80bfa363..0a2a6b5b 100644 --- a/.config/nvim/lua/plugins/vimtex.lua +++ b/.config/nvim/lua/plugins/vimtex.lua @@ -7,10 +7,6 @@ return { vim.g.vimtex_viewer_method = "zathura" vim.g.vimtex_quickfix_open_on_warning = 0 vim.g.vimtex_compiler_silent = 1 - vim.g.vimtex_syntax_conceal = { - math = 1, - oplus = "⊕", - } end, keys = { { "l", "", desc = "+vimtex" },