fix(ts): pass bufnr to vim.treesitter.get_node
This commit is contained in:
parent
2b9cb77325
commit
f82c4ac6eb
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue