diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-07-15 19:32:41 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-07-15 20:12:52 +0200 |
| commit | b480d25155d69d53fb4aaaacdfdfef410ea8ddc9 (patch) | |
| tree | a88db6c35a79d45ab66e8983f1d3e2200e818748 /lua/nvim-treesitter/locals.lua | |
| parent | 31d1f068fd0bec54af4250e9184227741297739a (diff) | |
feat(textobjects): Add `start` to include preceding things like documentation
Diffstat (limited to 'lua/nvim-treesitter/locals.lua')
| -rw-r--r-- | lua/nvim-treesitter/locals.lua | 2 |
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) |
