fix(picker): show_delay config value

This commit is contained in:
Folke Lemaitre 2025-10-21 15:38:12 +02:00
parent 64583a0386
commit 67bb3a7ba0
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -90,6 +90,7 @@ local M = {}
---@field title? string defaults to a capitalized source name
---@field auto_close? boolean automatically close the picker when focusing another window (defaults to true)
---@field show_empty? boolean show the picker even when there are no items
---@field show_delay? number delay (in ms) to wait before showing the picker while no results yet
---@field focus? "input"|"list" where to focus when the picker is opened (defaults to "input")
---@field enter? boolean enter the picker when opening it
---@field toggles? table<string, string|false|snacks.picker.toggle>
@ -115,6 +116,7 @@ local defaults = {
prompt = "",
sources = {},
focus = "input",
show_delay = 100,
layout = {
cycle = true,
--- Use the default layout or vertical if the window is too narrow