mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
feat(treesitter): add tree
boolean to toggle on/off tree symbols (#1105)
## Description Adds a `opts.tree` boolean option for treesitter picker to toggle on/off tree symbols <!-- Describe the big picture of your changes to communicate to the maintainers why we should accept this pull request. --> ## Related Issue(s) None, rather a discussion #1101 <!-- If this PR fixes any issues, please link to the issue here. - Fixes #<issue_number> --> ## Screenshots <!-- Add screenshots of the changes if applicable. -->
This commit is contained in:
parent
12848356c4
commit
c61f9eb286
2 changed files with 3 additions and 1 deletions
|
@ -789,9 +789,11 @@ M.spelling = {
|
|||
|
||||
---@class snacks.picker.treesitter.Config: snacks.picker.Config
|
||||
---@field filter table<string, string[]|boolean>? symbol kind filter
|
||||
---@field tree? boolean show symbol tree
|
||||
M.treesitter = {
|
||||
finder = "treesitter_symbols",
|
||||
format = "lsp_symbol",
|
||||
tree = true,
|
||||
filter = {
|
||||
default = {
|
||||
"Class",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue