Skip to content

Instantly share code, notes, and snippets.

@aplund
Created April 19, 2023 23:57
Show Gist options
  • Save aplund/342aa1bcb3ad89c1cf85b6366a3fc4d1 to your computer and use it in GitHub Desktop.
Save aplund/342aa1bcb3ad89c1cf85b6366a3fc4d1 to your computer and use it in GitHub Desktop.
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/share/nvim/runtime/lua/vim/treesitter/query.lua:200: in function 'get_query'
...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:108: in function 'get_query'
...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:201: in function 'prepare_query'
...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:397: in function 'iter_group_results'
...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:320: in function 'get_capture_matches'
...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:445: in function 'fn'
/usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:324: in function 'for_each_tree'
...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:440: in function 'get_capture_matches_recursively'
...acker/start/nvim-treesitter/lua/nvim-treesitter/fold.lua:25: in function 'fn'
...r/start/nvim-treesitter/lua/nvim-treesitter/ts_utils.lua:380: in function 'folds_levels'
...acker/start/nvim-treesitter/lua/nvim-treesitter/fold.lua:118: in function 'get_fold_indic'
[string "luaeval()"]:1: in main chunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment