aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-04-19 14:55:08 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-04-19 17:28:59 +0200
commit51ca6a5069d55d8ea658873cd11081a3658bdf24 (patch)
treeb3b3bef13c0fe6fdbfa86a924e07e7fd3af0a152 /lua
parentfeat: create NvimTreesitter augroup at startup (diff)
downloadnvim-treesitter-51ca6a5069d55d8ea658873cd11081a3658bdf24.tar
nvim-treesitter-51ca6a5069d55d8ea658873cd11081a3658bdf24.tar.gz
nvim-treesitter-51ca6a5069d55d8ea658873cd11081a3658bdf24.tar.bz2
nvim-treesitter-51ca6a5069d55d8ea658873cd11081a3658bdf24.tar.lz
nvim-treesitter-51ca6a5069d55d8ea658873cd11081a3658bdf24.tar.xz
nvim-treesitter-51ca6a5069d55d8ea658873cd11081a3658bdf24.tar.zst
nvim-treesitter-51ca6a5069d55d8ea658873cd11081a3658bdf24.zip
fix(matches): better storage of nodes
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/query.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/query.lua b/lua/nvim-treesitter/query.lua
index be650c795..e9f671f93 100644
--- a/lua/nvim-treesitter/query.lua
+++ b/lua/nvim-treesitter/query.lua
@@ -54,7 +54,7 @@ function M.iter_prepared_matches(query, qnode, bufnr, start_row, end_row)
local name = query.captures[id] -- name of the capture in the query
if name ~= nil then
local path = split(name)
- insert_to_path(prepared_match, path, node)
+ insert_to_path(prepared_match, path, { node=node })
end
end