]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): improve 'complete' option description
authorGirish Palya <girishji@gmail.com>
Thu, 11 Sep 2025 19:19:22 +0000 (15:19 -0400)
committerChristian Brabandt <cb@256bit.org>
Thu, 11 Sep 2025 19:19:22 +0000 (15:19 -0400)
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>
runtime/doc/insert.txt
runtime/doc/options.txt

index 2f8e3063398235c3b801a5b098068a2a5d8cafc2..0453b6f70d86521be84b53446582c83d3d2bbc99 100644 (file)
@@ -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'.
 
index 7d891a1cfc5df37ff7f6ba8f5fe2bbdb96f9a99c..2be98a419b345d11d428c2ab0b321f51f9c92f64 100644 (file)
@@ -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