Question

How to solve treesitter/highlighter: Error executing lua problem in neovim config

I'm currently using Neovim 6.0. And I also use the following neovim-config : https://github.com/rafi/vim-config.
After installation, I created a python program to test and a problem encountered which are as follows:

treesitter/highlighter: Error executing lua: ...im/0.6.0/share/nvim/runtime/lua/vim/treesitter/query.lua:161: query: invalid node type at position 5622 ~ pdb~ ⮡ Snippet [VSnip] st

 48  71283  48
1 Jan 1970

Solution

 160

I had a similar issue. I ran :TSUpdate in Neovim to update Treesitter plugin and the error message disapear after relaunching.

2022-01-16

Solution

 42

I just solved it using :TSInstall vim.

Actually, run :checkhealth and the error in there would help in figuring out what is missing.

2022-12-23