mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +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:
10
runtime/lua/vim/_meta/options.lua
generated
10
runtime/lua/vim/_meta/options.lua
generated
@@ -120,6 +120,16 @@ vim.o.ac = vim.o.autocomplete
|
||||
vim.go.autocomplete = vim.o.autocomplete
|
||||
vim.go.ac = vim.go.autocomplete
|
||||
|
||||
--- 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`.
|
||||
---
|
||||
--- @type integer
|
||||
vim.o.autocompletedelay = 0
|
||||
vim.o.acl = vim.o.autocompletedelay
|
||||
vim.go.autocompletedelay = vim.o.autocompletedelay
|
||||
vim.go.acl = vim.go.autocompletedelay
|
||||
|
||||
--- Copy indent from current line when starting a new line (typing <CR>
|
||||
--- in Insert mode or when using the "o" or "O" command). If you do not
|
||||
--- type anything on the new line except <BS> or CTRL-D and then type
|
||||
|
||||
Reference in New Issue
Block a user