Commit graph

14 commits

Author SHA1 Message Date
Steven Arcangeli
75de06f8ed lint: autoformat all tree-sitter query files 2024-06-01 20:50:39 -07:00
Steven Arcangeli
23a739c0ac refactor: rename @type capture to @symbol 2023-10-31 16:51:08 -07:00
Steven Arcangeli
e54cae0df0 feat: experimental support for navigating to symbol names (#279)
Using the treesitter backend, we can use the same "selectionRange" logic
that LSP symbol sources use to provide more detailed information about
where the name of the symbol is. We already use the LSP information to
change how we navigate the cursor to symbols, so once we parse this
information from treesitter it will automatically get used.

I'm putting this behind an experimental config option for now so we can
test it out for a while before making a sudden change to the behavior.
2023-08-09 21:47:48 -07:00
Steven Arcangeli
1a9896a7ca refactor: don't display anonymous lua functions
I find that showing anonymous functions is never helpful. These are
typically passed in as callback arguments to other functions, and are
not helpful to show in a symbol tree. They also break my expectations
for navigation.
2023-07-29 09:17:36 -07:00
monaqa
6b7f591184
use metadata "kind" in query file 2022-11-28 23:00:40 +09:00
Steven Arcangeli
dd35fd75c4 feat(ts)(lua): support for async plenary tests 2022-06-19 09:39:17 -07:00
Steven Arcangeli
895598c351 fix(ts)(lua): detect bracket index function names 2022-05-04 08:05:47 -07:00
Steven Arcangeli
b9f6067529 fix(ts)(lua): object method syntax (#51) 2022-03-23 19:04:17 -07:00
Steven Arcangeli
91350456c1 feat: add symbol ranges for treesitter and markdown (#52)
This adds support for the end_lnum and end_col fields to the treesitter
and markdown backends. Now all backends store both the start and the end
of a symbol. At the moment this is only being used for detecting exact
position matching, so the lualine component and highlighting when
`highlight_closest = false`.

This change also made the C, C++, and Julia treesitter backends a bit
more correct and robust.
2022-02-03 18:03:26 -08:00
Steven Arcangeli
95916d1b5f fix(ts)(lua): add missing global function symbols (#51) 2022-01-26 11:35:29 -08:00
Steven Arcangeli
786192193e fix(ts)(lua): update queries for new parser (#49) 2022-01-19 11:26:57 -08:00
Steven Arcangeli
fd31b255e8 feat(ts)(lua): show Busted calls as symbols 2022-01-02 16:19:27 -08:00
Steven Arcangeli
d122ec4f41 fix(ts)(lua): missing symbol name for module export functions 2021-11-21 13:26:04 -08:00
Steven Arcangeli
f327661d97 feat: functioning treesitter backend 2021-11-19 23:51:46 -08:00