mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
vim-patch:053aee0: runtime(doc): add more pointers to 'completeopt' (#34460)
Before this commit, I had trouble finding information about configuring
the insert mode completion. In particular, it was not clear that the
'wildopt' config that I already had in my vimrc does not apply here.
Also, `insert.txt` barely mentioned 'completeopt' except when
describing popups (I was more interested in bash-like behavior
where the unique prefix of all completions is completed first).
I'm hoping these edits will make the relevant docs easier to find.
closes: vim/vim#17515
053aee01f7
Co-authored-by: Ilya Grigoriev <ilyagr@users.noreply.github.com>
This commit is contained in:
6
runtime/lua/vim/_meta/options.lua
generated
6
runtime/lua/vim/_meta/options.lua
generated
@ -1184,6 +1184,9 @@ vim.go.cia = vim.go.completeitemalign
|
||||
--- completion in the preview window. Only works in
|
||||
--- combination with "menu" or "menuone".
|
||||
---
|
||||
--- This option does not apply to `cmdline-completion`. See 'wildoptions'
|
||||
--- for that.
|
||||
---
|
||||
--- @type string
|
||||
vim.o.completeopt = "menu,popup"
|
||||
vim.o.cot = vim.o.completeopt
|
||||
@ -7925,6 +7928,9 @@ vim.go.wim = vim.go.wildmode
|
||||
--- d #define
|
||||
--- f function
|
||||
---
|
||||
--- This option does not apply to `ins-completion`. See 'completeopt' for
|
||||
--- that.
|
||||
---
|
||||
--- @type string
|
||||
vim.o.wildoptions = "pum,tagfile"
|
||||
vim.o.wop = vim.o.wildoptions
|
||||
|
Reference in New Issue
Block a user