From b480d25155d69d53fb4aaaacdfdfef410ea8ddc9 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Wed, 15 Jul 2020 19:32:41 +0200 Subject: feat(textobjects): Add `start` to include preceding things like documentation --- lua/nvim-treesitter/locals.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/nvim-treesitter/locals.lua') 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) -- cgit v1.2.3