Closed ybbond closed 1 year ago
Thanks! Could you add a conditional to check if the function exists so that we don't break things for potential users that havent updated their nightly yet?
I think something like this should work:
local highlighter_query = vim.treesitter.query.get and vim.treesitter.query.get(tree:lang(), "highlights") or vim.treesitter.query.get_query(tree:lang(), "highlights")
@seblj I've added the ternary, and reminder comment. you may remove if you don't like TODOs I guess
please check 😄
Thank you!
fix warning of (will be) deprecated treesitter query method
get_query
to beget