feat(textobjects): Add start to include preceding things like documentation

This commit is contained in:
Stephan Seitz 2020-07-15 19:32:41 +02:00 committed by Thomas Vigouroux
parent 31d1f068fd
commit b480d25155
4 changed files with 39 additions and 6 deletions

View file

@ -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)