fix: shim 0.9 deprecations

This commit is contained in:
Lewis Russell 2023-03-24 09:43:14 +00:00 committed by Christian Clason
parent c7b9f68d03
commit 90ead4ed58
6 changed files with 27 additions and 8 deletions

View file

@ -168,7 +168,7 @@ query.add_directive("downcase!", function(match, _, bufnr, pred, metadata)
text = value
else
local node = match[value]
text = query.get_node_text(node, bufnr) or ""
text = vim.treesitter.get_node_text(node, bufnr) or ""
end
if #pred == 3 then