docs: docgen

This commit is contained in:
Folke Lemaitre 2025-02-19 16:56:38 +01:00
parent bd6a62af12
commit b82816e3ea
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
6 changed files with 38 additions and 15 deletions

View file

@ -168,11 +168,11 @@ Snacks.picker.pick({source = "files", ...})
---@class snacks.picker.previewers.Config
previewers = {
diff = {
native = false, -- use native (terminal) or Neovim for previewing git diffs and commits
builtin = true, -- use Neovim for previewing diffs (true) or use an external tool (false)
cmd = { "delta" }, -- example to show a diff with delta
},
git = {
native = false, -- use native (terminal) or Neovim for previewing git diffs and commits
builtin = true, -- use Neovim for previewing git output (true) or use git (false)
args = {}, -- additional arguments passed to the git command. Useful to set pager options usin `-c ...`
},
file = {
@ -1094,7 +1094,7 @@ Neovim commands
{
finder = "git_diff",
format = "file",
preview = "preview",
preview = "diff",
}
```