treesitter/highlighter issues with LaTeX formula in Markdown files, and any other language

58 Views Asked by At

treesitter/highlighter error

I am getting these treesitter/highlighter errors with markdown files too when I write a formula.

Any help would be greatly appreciated.

I installed, Lua5.4, tree-sitter-cli, complete latex, python3-venv, completely removed and reinstalled neovim.

1

There are 1 best solutions below

1
Tribhuwan On BEST ANSWER

The error you're getting might be caused by multiple parser paths, with the incorrect version being used. You can check the paths of the parser files by running the following command in Nvim: :echo nvim_get_runtime_file('parser', v:true) Check the parser path if the path isn't a valid path then install markdown parser :TSInstall vimdoc

As from this github issue, try TSUpdate, I prefer you to read the whole comments