chore(build): auto-generate docs

This commit is contained in:
folke 2025-01-16 08:55:15 +00:00 committed by github-actions[bot]
parent cc69043689
commit b89ac2548c

View file

@ -419,6 +419,17 @@ Generic filter used by finders to pre-filter items
---@field ignorecase? boolean use ignorecase (defaults to true)
```
This is only used when using `opts.preview = "preview"`.
It's a previewer that shows a preview based on the item data.
```lua
---@class snacks.picker.Item.preview
---@field text string text to show in the preview buffer
---@field ft? string optional filetype used tohighlight the preview buffer
---@field extmarks? snacks.picker.Extmark[] additional extmarks
---@field loc? boolean set to false to disable showing the item location in the preview
```
```lua
---@class snacks.picker.Item
---@field [string] any
@ -429,6 +440,7 @@ Generic filter used by finders to pre-filter items
---@field pos? {[1]:number, [2]:number}
---@field end_pos? {[1]:number, [2]:number}
---@field highlights? snacks.picker.Highlight[][]
---@field preview? snacks.picker.Item.preview
```
```lua
@ -672,6 +684,16 @@ Neovim commands
}
```
### `git_diff`
```lua
{
finder = "git_diff",
format = "file",
preview = "preview",
}
```
### `git_files`
Find git files