From 67bb3a7ba0478c892a4f06ac0446ca101af787c9 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 21 Oct 2025 15:38:12 +0200 Subject: [PATCH] fix(picker): show_delay config value --- lua/snacks/picker/config/defaults.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/snacks/picker/config/defaults.lua b/lua/snacks/picker/config/defaults.lua index f4b65095..bc5a6051 100644 --- a/lua/snacks/picker/config/defaults.lua +++ b/lua/snacks/picker/config/defaults.lua @@ -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 @@ -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