Suddenly, it seems that I have no syntax like this in my help files.

I do have help in Neovim\share\nvim\runtime\syntax , and &ft is help. Not sure how to debug it.

  • It does work with -u None
    – eyal karni
    Commented May 16 at 22:05

1 Answer 1


Seems to be because of this issue in tree-sitter:

What happens

After updating, highlights are broken for some or all languages with an error message like

treesitter/highlighter: error executing lua: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:172: query: invalid node type at position 765

Why this happens

After an update to nvim-treesitter or a related plugin, you have updated queries but not the corresponding parser (or vice versa), but queries are only compatible with specific parser versions, leading to errors if they no longer match.

What can I do

First, make sure that nvim-treesitter is updated to the latest commit and run :TSUpdate manually.

If the error persists, remove nvim-treesitter completely and reinstall it together with all parsers.

If the error still persists, run :checkhealth and note down the languages for which you see errors (an x in the list of languages, and explicitly listed below that). For each language (hereafter denoted by <lang>), repeat the following steps

  1. :TSInstall! <lang> and restart Neovim; if the error persists, continue.
  2. Run the following commands and note down the output:
    :echo nvim_get_runtime_file('*/<lang>.so', v:true)
    :echo nvim_get_runtime_file('queries/<lang>/*.scm', v:true)
  3. If either of these lists contain a directory that is not a subdirectory of nvim-treesitter, remove that directory (and, if it is another plugin, report the issue at the corresponding repository).

UPDATE Since 0.8.0, Neovim bundles parsers and queries for c, lua, vim, and help. If you use nvim-treesitter, you must make sure these parsers are installed via nvim-treesitter so that both parser and queries (which are always installed) are taken from nvim-treesitter. (It's important for this that your nvim-treesitter plugin directory comes before both /usr/local/share/nvim/* and /usr/lib/nvim in your runtimepath.)

  • Thanks for the edit.
    – eyal karni
    Commented May 17 at 19:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.