diff --git a/nvim/.config/nvim/lua/plugins/vimtex.lua b/nvim/.config/nvim/lua/plugins/vimtex.lua index e0ead15..75e38ca 100644 --- a/nvim/.config/nvim/lua/plugins/vimtex.lua +++ b/nvim/.config/nvim/lua/plugins/vimtex.lua @@ -22,28 +22,26 @@ return { -- Concealment - -- TODO: Use lua instead of vimscript - vim.cmd([[set conceallevel=1]]) - vim.cmd([[ - let g:vimtex_syntax_conceal = { - \ 'accents': 1, - \ 'ligatures': 1, - \ 'cites': 1, - \ 'fancy': 1, - \ 'spacing': 0, - \ 'greek': 1, - \ 'math_bounds': 1, - \ 'math_delimiters': 1, - \ 'math_fracs': 1, - \ 'math_super_sub': 0, - \ 'math_symbols': 1, - \ 'sections': 0, - \ 'styles': 0, - \} + vim.o.conceallevel = 1 - let g:vimtex_syntax_custom_cmds = [ - \ {'name': 'bm', 'mathmode': 1, 'argstyle': 'bold', 'conceal': 1}, - \] - ]]) + vim.g.vimtex_syntax_conceal = { + accents = 1, + ligatures = 1, + cites = 1, + fancy = 1, + spacing = 0, + greek = 1, + math_bounds = 1, + math_delimiters = 1, + math_fracs = 1, + math_super_sub = 0, + math_symbols = 1, + sections = 0, + styles = 0, + } + + vim.g.vimtex_syntax_custom_cmds = { + { name = 'bm', mathmode = 1, argstyle = 'bold', conceal = 1 }, + } end }