chore(build): auto-generate docs

This commit is contained in:
folke 2025-01-19 16:30:35 +00:00 committed by github-actions[bot]
parent 348307a82e
commit 924a33a167

View file

@ -435,15 +435,6 @@ Snacks.picker.pick({source = "files", ...})
---@field cmd? string
```
```lua
---@class snacks.picker.Last
---@field cursor number
---@field topline number
---@field opts snacks.picker.Config
---@field selected snacks.picker.Item[]
---@field filter snacks.picker.Filter
```
```lua
---@alias snacks.picker.Extmark vim.api.keyset.set_extmark|{col:number, row?:number, field?:string}
---@alias snacks.picker.Text {[1]:string, [2]:string?, virtual?:boolean, field?:string}
@ -512,6 +503,15 @@ It's a previewer that shows a preview based on the item data.
---@field preview? snacks.win.Config|{} preview window config
```
```lua
---@class snacks.picker.Last
---@field cursor number
---@field topline number
---@field opts snacks.picker.Config
---@field selected snacks.picker.Item[]
---@field filter snacks.picker.Filter
```
## 📦 Module
```lua
@ -1058,6 +1058,7 @@ LSP document symbols
---@class snacks.picker.lsp.symbols.Config: snacks.picker.Config
---@field hierarchy? boolean show symbol hierarchy
---@field filter table<string, string[]|boolean>? symbol kind filter
---@field workspace? boolean show workspace symbols
{
finder = "lsp_symbols",
format = "lsp_symbol",
@ -1116,6 +1117,18 @@ LSP type definitions
}
```
### `lsp_workspace_symbols`
```lua
---@type snacks.picker.lsp.symbols.Config
vim.tbl_extend("force", {}, M.lsp_symbols, {
workspace = true,
hierarchy = false,
supports_live = true,
live = true, -- live by default
})
```
### `man`
```lua
@ -1784,6 +1797,8 @@ Snacks.picker.actions.toggle_maximize(picker)
Snacks.picker.actions.toggle_preview(picker)
```
## 📦 `snacks.picker.core.picker`
```lua
@ -1960,5 +1975,3 @@ Get the word under the cursor or the current visual selection
```lua
picker:word()
```