You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable searching treesitter symbols akin to Telescope's builtin.treesitter.
Notionally, ts_symbols could search all buffer symbols, while ts_functions, ts_variables, ts_classes, etc. could be defined to search a specific subset of symbols. Alternatively (or additionally), ts_symbols could accept a criteria to filter on particular symbol types.
The text was updated successfully, but these errors were encountered:
I’ve seen this in Telescope but I’m not sure I find the value in this, in between lsp symbols and btags/blinds I can’t think of anything I would like to find in a file and can’t or would a scenario where I’d prefer to open a tree sitter picker instead.
What’s the use case for this that isn’t covered by the pickers I mentioned?
Searching across LSP symbols is absolutely better as you say, but it is often the case that languages/syntaxes have treesitter grammars but no LSP. Sometimes project files/structure can be too large for certain LSPs, in which case only Treesitter can be used.
Being able to search across tokens with certain semantics is helpful for the same reason lsp_typedefs, lsp_implementations, etc. are helpful. To your point, regular string search can get you to the same place but search results can be quite cluttered without pre-filtering (depending on the structure and amount of code).
Telescope pickers can be used alongside fzf-lua to search treesitter symbols, it just depends on how you want to position fzf-lua. Would you expect users to have both fzf-lua and telescope installed and configured? Personally, I would just use one or the other.
Have you RTFM'd?
Feature Request
Enable searching treesitter symbols akin to Telescope's
builtin.treesitter
.Notionally,
ts_symbols
could search all buffer symbols, whilets_functions
,ts_variables
,ts_classes
, etc. could be defined to search a specific subset of symbols. Alternatively (or additionally),ts_symbols
could accept a criteria to filter on particular symbol types.The text was updated successfully, but these errors were encountered: