nvim: Modify vimtex config to use lua instead of vimscript
This commit is contained in:
parent
959cc167c6
commit
48ad61643f
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user