mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 04:40:08 -04:00
fix: change locals extraction
This commit is contained in:
parent
5dc5695413
commit
824b063d0d
1 changed files with 2 additions and 2 deletions
|
|
@ -52,8 +52,8 @@ function M.get_definitions(bufnr)
|
||||||
local defs = {}
|
local defs = {}
|
||||||
|
|
||||||
for _, loc in ipairs(locals) do
|
for _, loc in ipairs(locals) do
|
||||||
if loc.definition and loc.definition.node then
|
if loc.definition then
|
||||||
table.insert(defs, {node=loc.definition.node, kind=loc.kind})
|
table.insert(defs, loc.definition)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue