nvim: Modify vimtex config to use lua instead of vimscript

This commit is contained in:
Andreas Tsouchlos 2025-11-16 00:22:12 +01:00
parent 959cc167c6
commit 48ad61643f

View File

@ -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
}