mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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 = {}
|
||||
|
||||
for _, loc in ipairs(locals) do
|
||||
if loc.definition and loc.definition.node then
|
||||
table.insert(defs, {node=loc.definition.node, kind=loc.kind})
|
||||
if loc.definition then
|
||||
table.insert(defs, loc.definition)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue