patch 9.1.1638: completion: not possible to delay the autcompletion
Problem: completion: not possible to delay the autcompletion Solution: add the 'autocompletedelay' option value (Girish Palya). This patch introduces a new global option 'autocompletedelay'/'acl' that specifies the delay, in milliseconds, before the autocomplete menu appears after typing. When set to a non-zero value, Vim waits for the specified time before showing the completion popup, allowing users to reduce distraction from rapid suggestion pop-ups or to fine-tune the responsiveness of completion. The default value is 0, which preserves the current immediate-popup behavior. closes: #17960 Signed-off-by: Girish Palya <girishji@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
b405c79004
commit
a09b1604d4
@ -392,6 +392,9 @@ static struct vimoption options[] =
|
||||
{"autocomplete", "ac", P_BOOL|P_VI_DEF,
|
||||
(char_u *)&p_ac, PV_NONE, NULL,
|
||||
NULL, {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
|
||||
{"autocompletedelay", "acl", P_NUM|P_VI_DEF,
|
||||
(char_u *)&p_acl, PV_NONE, NULL, NULL,
|
||||
{(char_u *)0L, (char_u *)0L} SCTX_INIT},
|
||||
#endif
|
||||
{"autoindent", "ai", P_BOOL|P_VI_DEF,
|
||||
(char_u *)&p_ai, PV_AI, NULL, NULL,
|
||||
|
||||
Reference in New Issue
Block a user