mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
feat(picker): added treesitter symbols picker
This commit is contained in:
parent
fcd190307b
commit
a6beb0f280
2 changed files with 214 additions and 0 deletions
|
@ -769,6 +769,29 @@ M.spelling = {
|
|||
confirm = "item_action",
|
||||
}
|
||||
|
||||
---@class snacks.picker.treesitter.Config: snacks.picker.Config
|
||||
---@field filter table<string, string[]|boolean>? symbol kind filter
|
||||
M.treesitter = {
|
||||
finder = "treesitter_symbols",
|
||||
format = "lsp_symbol",
|
||||
filter = {
|
||||
default = {
|
||||
"Class",
|
||||
"Enum",
|
||||
"Field",
|
||||
"Function",
|
||||
"Method",
|
||||
"Module",
|
||||
"Namespace",
|
||||
"Struct",
|
||||
"Trait",
|
||||
},
|
||||
-- set to `true` to include all symbols
|
||||
markdown = true,
|
||||
help = true,
|
||||
},
|
||||
}
|
||||
|
||||
---@class snacks.picker.undo.Config: snacks.picker.Config
|
||||
---@field diff? vim.diff.Opts
|
||||
M.undo = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue