Fix treesitter + vimtex, fix concealment
This commit is contained in:
parent
5b4ffb2514
commit
0e81707573
@ -28,8 +28,11 @@ return {
|
|||||||
|
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
additional_vim_regex_highlighting = false,
|
-- additional_vim_regex_highlighting = false,
|
||||||
disable = {
|
-- disable = {
|
||||||
|
-- "latex"
|
||||||
|
-- },
|
||||||
|
additional_vim_regex_highlighting = {
|
||||||
"latex"
|
"latex"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"lervag/vimtex",
|
"lervag/vimtex",
|
||||||
ft = {"tex", "bib"},
|
ft = {
|
||||||
|
"tex",
|
||||||
|
"bib"
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
-- General configuration
|
-- General configuration
|
||||||
|
|
||||||
@ -24,7 +27,27 @@ return {
|
|||||||
-- Concealment
|
-- Concealment
|
||||||
|
|
||||||
vim.cmd([[set conceallevel=1]])
|
vim.cmd([[set conceallevel=1]])
|
||||||
vim.g.tex_conceal = 'abdmg'
|
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,
|
||||||
|
\}
|
||||||
|
|
||||||
|
let g:vimtex_syntax_custom_cmds = [
|
||||||
|
\ {'name': 'bm', 'mathmode': 1, 'argstyle': 'bold', 'conceal': 1},
|
||||||
|
\]
|
||||||
|
]])
|
||||||
|
|
||||||
-- Synctex configuration
|
-- Synctex configuration
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user