mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
feat(textobjects): Add start to include preceding things like documentation
This commit is contained in:
parent
31d1f068fd
commit
b480d25155
4 changed files with 39 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue