fix: change locals extraction

This commit is contained in:
Thomas Vigouroux 2020-05-07 09:20:40 +02:00
parent 5dc5695413
commit 824b063d0d

View file

@ -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