fix get_node_text deprecation
This commit is contained in:
parent
6c43163eae
commit
8d7fc96ef2
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ function M.get_all_nodes(query, lang, _, bufnr, pos_row, _)
|
||||||
type = string.sub(path, 1, idx - 1)
|
type = string.sub(path, 1, idx - 1)
|
||||||
|
|
||||||
if op == "name" then
|
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
|
elseif op == "declaration" or op == "clause" then
|
||||||
declaration_node = node
|
declaration_node = node
|
||||||
sRow, sCol, eRow, eCol = node:range()
|
sRow, sCol, eRow, eCol = node:range()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue