fix(ts): pass bufnr to vim.treesitter.get_node

This commit is contained in:
Oleksandr Smirnov 2025-03-19 15:03:49 +02:00
parent 2b9cb77325
commit f82c4ac6eb
No known key found for this signature in database

View file

@ -65,7 +65,9 @@ end
---@param query string
---@return gopher.TsResult
local function do_stuff(bufnr, parent_type, query)
local node = vim.treesitter.get_node()
local node = vim.treesitter.get_node {
bufnr = bufnr,
}
if not node then
error "No nodes found under cursor"
end