Closed HATTER-LONG closed 11 months ago
I think this is related to my Mac OS environment. I tested it on the Ubuntu server and it worked properly.
What is the possible cause of this? 😓
plugin config like this https://github.com/AstroNvim/astrocommunity/tree/main/lua/astrocommunity/editing-support/rainbow-delimiters-nvim
Same issue. Working on MacOS and Neovim 0.10.0
Met the same issue. I write cpp code block in markdown. It will cause:
Error in decoration provider treesitter/highlighter.win:
Error executing lua: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:273: query: invalid structure at position 338 for language cpp
stack traceback:
[C]: in function '_ts_parse_query'
/usr/share/nvim/runtime/lua/vim/treesitter/query.lua:273: in function 'parse'
/usr/share/nvim/runtime/lua/vim/treesitter/query.lua:232: in function 'get_query'
...y/rainbow-delimiters.nvim/lua/rainbow-delimiters/lib.lua:68: in function 'get_query'
...limiters.nvim/lua/rainbow-delimiters/strategy/global.lua:108: in function 'fn'
/usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:457: in function 'for_each_child'
...limiters.nvim/lua/rainbow-delimiters/strategy/global.lua:104: in function 'setup_parser'
...limiters.nvim/lua/rainbow-delimiters/strategy/global.lua:133: in function 'cb'
/usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:838: in function '_do_callback'
/usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:501: in function '
I can confirm my cpp treesitter parser is update, and I use neovim-nightly.
Same here, Not working on cpp file. It's working on lua. I'm on MacOS, nvim version 0.10.0
Please try the current master
branch. The Tree-sitter grammar for C++ has changed and is no longer compatible with the C grammar, so I had to update the query. Everything should work now.
Great! It's fixed on my end
I can confirm it is fixed after I do an update. I think the issue should be closed then. Thanks for this quick fix!
work normally, thanks
Neovim version
0.9.1
Language affected
cpp
Query
No response
Strategy
No response
Description
I'm not sure what caused it, it's not working on CPP.
working normally on lua ft.