mirror of
https://github.com/neovim/neovim.git
synced 2025-11-15 06:49:01 +00:00
vim-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: vim/vim#17960
a09b1604d4
N/A patch: vim-patch:9.1.1641: a few compiler warnings are output
Co-authored-by: Girish Palya <girishji@gmail.com>
This commit is contained in:
@@ -241,6 +241,20 @@ local options = {
|
||||
type = 'boolean',
|
||||
varname = 'p_ac',
|
||||
},
|
||||
{
|
||||
abbreviation = 'acl',
|
||||
defaults = 0,
|
||||
desc = [=[
|
||||
Delay in milliseconds before the autocomplete menu appears after
|
||||
typing. If you prefer it not to open too quickly, set this value
|
||||
slightly above your typing speed. See |ins-autocompletion|.
|
||||
]=],
|
||||
full_name = 'autocompletedelay',
|
||||
scope = { 'global' },
|
||||
short_desc = N_('delay in msec before menu appears after typing'),
|
||||
type = 'number',
|
||||
varname = 'p_acl',
|
||||
},
|
||||
{
|
||||
abbreviation = 'ai',
|
||||
defaults = true,
|
||||
|
||||
Reference in New Issue
Block a user