summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-05-07 09:20:40 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-05-07 14:03:29 +0200
commit824b063d0d518dd20e09585604e923139599128f (patch)
tree567bd93118efe45c5cc486b258ce8a021626f707
parent5dc5695413a2cce19938db963984926008cde139 (diff)
fix: change locals extraction
-rw-r--r--lua/nvim-treesitter/locals.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/locals.lua b/lua/nvim-treesitter/locals.lua
index 3e517454..b16408ac 100644
--- a/lua/nvim-treesitter/locals.lua
+++ b/lua/nvim-treesitter/locals.lua
@@ -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