mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
runtime(doc): improve 'complete' option description
Add minimal reference to LSP. It might help new users. closes: #18276 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
9e100b8d14
commit
f35a2af8ef
@@ -1,4 +1,4 @@
|
||||
*insert.txt* For Vim version 9.1. Last change: 2025 Sep 10
|
||||
*insert.txt* For Vim version 9.1. Last change: 2025 Sep 11
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1164,8 +1164,8 @@ This enables automatic completion with suggestions from the current buffer,
|
||||
other windows, and listed buffers, displayed in a popup menu. Each source is
|
||||
limited to 5 candidates. <Tab> and <S-Tab> move through the items when the
|
||||
menu is visible. Optionally, add "preinsert" to 'completeopt' to insert the
|
||||
longest common prefix automatically. You can also add other completion
|
||||
sources to 'complete' as needed.
|
||||
longest common prefix automatically. Additional sources (e.g., LSP clients)
|
||||
may be added to 'complete' to improve completion as required.
|
||||
|
||||
See also 'autocomplete', 'autocompletedelay' and 'autocompletetimeout'.
|
||||
|
||||
|
@@ -2164,8 +2164,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
is especially important for |ins-autocompletion|.
|
||||
F equivalent to using "F{func}", where the function is taken from
|
||||
the 'completefunc' option.
|
||||
o equivalent to using "F{func}", where the function is taken from
|
||||
the 'omnifunc' option.
|
||||
o equivalent to "F{func}", where {func} is taken from the 'omnifunc'
|
||||
option. If a plugin (such as an LSP client) defines 'omnifunc', it
|
||||
can be used through this flag.
|
||||
|
||||
Unloaded buffers are not loaded, thus their autocmds |:autocmd| are
|
||||
not executed, this may lead to unexpected completions from some files
|
||||
|
Reference in New Issue
Block a user