Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
fix: use vim.treesitter.query.parse
Browse files Browse the repository at this point in the history
  • Loading branch information
ziontee113 committed Apr 17, 2023
1 parent 1afc97a commit 93558d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/SelectEase/lib/get_ts_nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ M.get_nodes_from_query = function(query, queries)
return {}
end

local iter_query = vim.treesitter.query.parse_query(parser_name, query)
local iter_query = vim.treesitter.query.parse(parser_name, query)
for _, matches, _ in iter_query:iter_matches(root) do
local node = matches[1]
table.insert(nodes, node)
Expand Down

0 comments on commit 93558d5

Please sign in to comment.