mrjones2014 / nvim-ts-rainbow

Rainbow parentheses for neovim using tree-sitter.
Apache License 2.0
174 stars 4 forks source link

depracated vim.treesitter.query.get_query bug #16

Open Mugworth opened 1 year ago

Mugworth commented 1 year ago

after pulling: NVIM v0.9.0-dev-1319+g10baf8971 Build type: RelWithDebInfo LuaJIT 2.1.0-beta3 i got this error:

vim.treesitter.query.get_query() is deprecated, use vim.treesitter.query.get() instead. :help deprecated
This feature will be removed in Nvim version 0.10
stack traceback:
/usr/local/share/nvim/runtime/lua/vim/treesitter/query.lua:200: in function 'get_query'
.../nvim/lazy/nvim-treesitter/lua/nvim-treesitter/query.lua:108: in function 'get_query'
...a/.local/share/nvim/lazy/nvim-ts-rainbow/lua/rainbow.lua:8: in function 'is_supported'
...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:389: in function 'is_enabled'
...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:509: in function 'attach_module'
...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:534: in function 'reattach_module'
...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:135: in function <...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:134>
[C]: in function 'nvim_cmd'
/usr/local/share/nvim/runtime/filetype.lua:22: in function </usr/local/share/nvim/runtime/filetype.lua:21>
[C]: in function 'nvim_buf_call'
/usr/local/share/nvim/runtime/filetype.lua:21: in function </usr/local/share/nvim/runtime/filetype.lua:10>