mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(picker): show_delay config value
This commit is contained in:
parent
64583a0386
commit
67bb3a7ba0
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue