fix(vimtex): suppress treesitter warning

Currently, vimtex warns:

    syntax highlighting is controlled by Treesitter

Explicitly disabling syntax higlighting disables the warning.
This commit is contained in:
Oliver Papst 2024-05-26 11:18:33 +02:00
parent c9ab8224f5
commit 6d00cb856a

View file

@ -36,6 +36,7 @@ return {
config = function() config = function()
vim.g.vimtex_mappings_disable = { ["n"] = { "K" } } -- disable `K` as it conflicts with LSP hover vim.g.vimtex_mappings_disable = { ["n"] = { "K" } } -- disable `K` as it conflicts with LSP hover
vim.g.vimtex_quickfix_method = vim.fn.executable("pplatex") == 1 and "pplatex" or "latexlog" vim.g.vimtex_quickfix_method = vim.fn.executable("pplatex") == 1 and "pplatex" or "latexlog"
vim.g.vimtex_syntax_enabled = false -- suppress treesitter warning
end, end,
}, },