mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-03 18:28:38 +00:00
chore(build): auto-generate docs
This commit is contained in:
parent
781b6f6ab0
commit
be1e5072c1
1 changed files with 13 additions and 11 deletions
|
@ -439,15 +439,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}
|
||||
|
@ -517,6 +508,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
|
||||
|
@ -719,6 +719,7 @@ Neovim commands
|
|||
---@field dirs? string[] directories to search
|
||||
---@field follow? boolean follow symlinks
|
||||
---@field exclude? string[] exclude patterns
|
||||
---@field args? string[] additional arguments
|
||||
{
|
||||
finder = "files",
|
||||
format = "file",
|
||||
|
@ -852,6 +853,7 @@ Git log
|
|||
---@field buffers? boolean search in open buffers
|
||||
---@field need_search? boolean require a search pattern
|
||||
---@field exclude? string[] exclude patterns
|
||||
---@field args? string[] additional arguments
|
||||
{
|
||||
finder = "grep",
|
||||
format = "file",
|
||||
|
@ -1813,6 +1815,8 @@ Snacks.picker.actions.toggle_maximize(picker)
|
|||
Snacks.picker.actions.toggle_preview(picker)
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 📦 `snacks.picker.core.picker`
|
||||
|
||||
```lua
|
||||
|
@ -1989,5 +1993,3 @@ Get the word under the cursor or the current visual selection
|
|||
```lua
|
||||
picker:word()
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue