-
Notifications
You must be signed in to change notification settings - Fork 407
Treesitter alongside vimtex #2469
Copy link
Copy link
Closed
Labels
Description
Not really an issue rather a suggestion.
Currently, Vimtex's documentation suggests not to install markdown or latex Treesitter parsers if one wants to use Vimtex for recognizing mathzones. But this means one cannot use plugins like https://github.com/AckslD/nvim-FeMaco.lua.
So to get around the problem one can do
require("nvim-treesitter.configs").setup({
ensure_installed = { "markdown" },
highlight = {
enable = true,
disable = { "latex" },
additional_vim_regex_highlighting = { "latex", "markdown" },
},
--other treesitter settings
})
I have tested this config out with small markdown files and as of the moment I can use both nvim-FeMaco and Vimtex's mathzones in the same file.
Reactions are currently unavailable