summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/locals.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-treesitter/locals.lua')
-rw-r--r--lua/nvim-treesitter/locals.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/locals.lua b/lua/nvim-treesitter/locals.lua
index 93bcd90f..c092a073 100644
--- a/lua/nvim-treesitter/locals.lua
+++ b/lua/nvim-treesitter/locals.lua
@@ -126,7 +126,7 @@ function M.get_capture_matches(bufnr, capture_string, query_kind)
local matches = {}
for _, match in pairs(M.get_locals(bufnr, query_kind)) do
- local insert = utils.get_at_path(match, capture_string..'.node')
+ local insert = utils.get_at_path(match, capture_string)
if insert then
table.insert(matches, insert)