diff --git a/docs/explorer.md b/docs/explorer.md index be10968d..5a56877c 100644 --- a/docs/explorer.md +++ b/docs/explorer.md @@ -85,3 +85,12 @@ Shortcut to open the explorer picker ---@param opts? snacks.picker.explorer.Config|{} Snacks.explorer.open(opts) ``` + +### `Snacks.explorer.reveal()` + +Reveals the given file/buffer or the current buffer in the explorer + +```lua +---@param opts? {file?:string, buf?:number} +Snacks.explorer.reveal(opts) +``` diff --git a/docs/picker.md b/docs/picker.md index 310415e3..ae51620a 100644 --- a/docs/picker.md +++ b/docs/picker.md @@ -109,6 +109,7 @@ Snacks.picker.pick({source = "files", ...}) ---@field jump? snacks.picker.jump.Config|{} --- Other ---@field config? fun(opts:snacks.picker.Config):snacks.picker.Config? custom config function +---@field db? snacks.picker.db.Config|{} ---@field debug? snacks.picker.debug|{} { prompt = " ", @@ -397,6 +398,7 @@ Snacks.picker.pick({source = "files", ...}) Variable = "󰀫 ", }, }, + ---@class snacks.picker.db.Config db = { -- path to the sqlite3 library -- If not set, it will try to load the library by name.