aboutsummaryrefslogtreecommitdiffstats
path: root/lua
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 /lua
parentfeat: support suggested highlights (diff)
downloadnvim-treesitter-824b063d0d518dd20e09585604e923139599128f.tar
nvim-treesitter-824b063d0d518dd20e09585604e923139599128f.tar.gz
nvim-treesitter-824b063d0d518dd20e09585604e923139599128f.tar.bz2
nvim-treesitter-824b063d0d518dd20e09585604e923139599128f.tar.lz
nvim-treesitter-824b063d0d518dd20e09585604e923139599128f.tar.xz
nvim-treesitter-824b063d0d518dd20e09585604e923139599128f.tar.zst
nvim-treesitter-824b063d0d518dd20e09585604e923139599128f.zip
fix: change locals extraction
Diffstat (limited to 'lua')
-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 3e5174548..b16408ac5 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