Hello,
I use the vimtex plugin for editing latex files. At start it tells me that highlighting is done by treesitter. How can I disable treesitter and use the highlighting of vimtex?
Thanks
Pawel
Hello,
I use the vimtex plugin for editing latex files. At start it tells me that highlighting is done by treesitter. How can I disable treesitter and use the highlighting of vimtex?
Thanks
Pawel
Update:
when I type
:TSDisable highlight
it does the job.
My question now is how do I do it automatically each time I open a .tex file.
Thanks
Use a FileType
autocommand. For lua:
vim.api.nvim_create_autocmd({ "FIleType" }, { pattern = "tex" , group = optional_group, command = "TSBufDisable highlight" })
Maybe treesitter also has some kind of blacklist in the config, I can’t remember right now.