Skip to content

Nvim-treesitter

Nvim Treesitter configurations and abstraction layer

nvim-treesitter의 목표는 Neovim에서 tree-sitter를 위한 인터페이스를 사용하는 간단하고 쉬운 방법을 제공하고 이를 기반으로 한 강조 표시와 같은 몇 가지 기본 기능을 제공하는 것입니다.

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>

:TSUpdate로 업데이트 하자.

또는 해당 언어에 대해서 재설치 하자.

:TSUninstall go
:TSInstall go

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?

neovim --version 으로 버전 확인해보자. Neovim 0.10 이상이여야 한다.

See also

Favorite site