Nvim-treesitter
lastmod 2025-11-19created 2022-07-274 edits
Nvim Treesitter configurations and abstraction layer
The goal of nvim-treesitter is to provide a simple and easy way to use the interface for tree-sitter in Neovim, and to provide some basic functionality, such as highlighting, based on it.
Troubleshooting
Error detected while processing BufReadPost Autocommands for "*":
Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /tmp/.mount_nvimdoWwj7/usr/share/nvim/runtime/filetype.lua:24: Error executing lua: /tmp/.mount_nvimdoWwj7/usr/share/nvim/runtime/filetype.lua:25: BufReadPost Autocommands for "*"..FileType Autocommands for "*": Vim(append):Error executi
ng lua callback: ...Wwj7/usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 362 for language go
stack traceback:
[C]: in function '_ts_parse_query'
...Wwj7/usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: in function 'get'
...r/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:114: in function 'new'
...nvimdoWwj7/usr/share/nvim/runtime/lua/vim/treesitter.lua:61: in function '_create_parser'
...nvimdoWwj7/usr/share/nvim/runtime/lua/vim/treesitter.lua:131: in function 'get_parser'
...nvimdoWwj7/usr/share/nvim/runtime/lua/vim/treesitter.lua:460: in function 'start'
...undle/nvim-treesitter//lua/nvim-treesitter/highlight.lua:20: in function 'attach'
.../bundle/nvim-treesitter//lua/nvim-treesitter/configs.lua:509: in function 'attach_module'
.../bundle/nvim-treesitter//lua/nvim-treesitter/configs.lua:532: in function 'reattach_module'
.../bundle/nvim-treesitter//lua/nvim-treesitter/configs.lua:133: in function <.../bundle/nvim-treesitter//lua/nvim-treesitter/configs.lua:132>
[C]: in function 'nvim_cmd'
/tmp/.mount_nvimdoWwj7/usr/share/nvim/runtime/filetype.lua:25: in function </tmp/.mount_nvimdoWwj7/usr/share/nvim/runtime/filetype.lua:24>
[C]: in function 'nvim_buf_call'
/tmp/.mount_nvimdoWwj7/usr/share/nvim/runtime/filetype.lua:24: in function </tmp/.mount_nvimdoWwj7/usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_cmd'
/tmp/.mount_nvimdoWwj7/usr/share/nvim/runtime/filetype.lua:25: in function </tmp/.mount_nvimdoWwj7/usr/share/nvim/runtime/filetype.lua:24>
[C]: in function 'nvim_buf_call'
/tmp/.mount_nvimdoWwj7/usr/share/nvim/runtime/filetype.lua:24: in function </tmp/.mount_nvimdoWwj7/usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_buf_call'
/tmp/.mount_nvimdoWwj7/usr/share/nvim/runtime/filetype.lua:24: in function </tmp/.mount_nvimdoWwj7/usr/share/nvim/runtime/filetype.lua:10>
Update with :TSUpdate.
Or reinstall it for that language.
No handler for not-has-parent?
treesitter/highlighter: Error executing lua: ...AZFD/usr/share/nvim/runtime/lua/vim/treesitter/query.lua:557: No handler for not-has-parent?
Check the version with neovim --version. It must be Neovim 0.10 or later.
See also
Favorite site
Pages that link here