You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It tells you to use vim.treesitter.parse_query() which throws an error. This was actually changed a year ago to be fixed but maybe the docs never got updated? see this PR: #51
In addition, the treesitter api has changed again so now even using from that PR vim.treesitter.query.parse_query() is deprecated, but it just gives you a warning and still lets you use it for now.
The latest and greatest API to use is using vim.treesitter.query.parse().
TLDR: need to use vim.treesitter.query.parse() going forward and need to update the readme to reflect that.
The text was updated successfully, but these errors were encountered:
Not sure if there was a regression at some point that let this creep in, or if the docs have just always been outdated, but when you copy the default config options from the readme from here: https://github.com/lukas-reineke/headlines.nvim?tab=readme-ov-file#setup
It tells you to use
vim.treesitter.parse_query()
which throws an error. This was actually changed a year ago to be fixed but maybe the docs never got updated? see this PR: #51In addition, the treesitter api has changed again so now even using from that PR
vim.treesitter.query.parse_query()
is deprecated, but it just gives you a warning and still lets you use it for now.The latest and greatest API to use is using
vim.treesitter.query.parse()
.TLDR: need to use
vim.treesitter.query.parse()
going forward and need to update the readme to reflect that.The text was updated successfully, but these errors were encountered: