aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/options.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r--src/nvim/options.lua13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index d1d5a56082..2516d1a970 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -10020,7 +10020,7 @@ local options = {
cb = 'did_set_wildmode',
defaults = 'full',
-- Keep this in sync with check_opt_wim().
- values = { 'full', 'longest', 'list', 'lastused' },
+ values = { 'full', 'longest', 'list', 'lastused', 'noselect' },
flags = true,
deny_duplicates = false,
desc = [=[
@@ -10042,7 +10042,10 @@ local options = {
"lastused" When completing buffer names and more than one buffer
matches, sort buffers by time last used (other than
the current buffer).
- When there is only a single match, it is fully completed in all cases.
+ "noselect" Do not pre-select first menu item and start 'wildmenu'
+ if it is enabled.
+ When there is only a single match, it is fully completed in all cases
+ except when "noselect" is present.
Examples of useful colon-separated values:
"longest:full" Like "longest", but also start 'wildmenu' if it is
@@ -10065,7 +10068,11 @@ local options = {
set wildmode=list,full
< List all matches without completing, then each full match >vim
set wildmode=longest,list
- < Complete longest common string, then list alternatives.
+ < Complete longest common string, then list alternatives >vim
+ set wildmode=noselect:full
+ < Display 'wildmenu' without completing, then each full match >vim
+ set wildmode=noselect:lastused,full
+ < Same as above, but sort buffers by time last used.
More info here: |cmdline-completion|.
]=],
full_name = 'wildmode',