fix get_node_text deprecation

This commit is contained in:
Elliott Minns 2023-05-06 18:37:33 -05:00
parent 6c43163eae
commit 8d7fc96ef2
No known key found for this signature in database
GPG key ID: 077222B384435572

View file

@ -81,7 +81,7 @@ function M.get_all_nodes(query, lang, _, bufnr, pos_row, _)
type = string.sub(path, 1, idx - 1)
if op == "name" then
name = vim.treesitter.query.get_node_text(node, bufnr)
name = vim.treesitter.get_node_text(node, bufnr)
elseif op == "declaration" or op == "clause" then
declaration_node = node
sRow, sCol, eRow, eCol = node:range()