From 4662ad5643b270958fa6dc3c0ded15800ce6faf6 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 15 Mar 2025 06:07:21 -0700 Subject: feat(defaults): completeopt=popup #32909 Assuming that completeopt=popup does what its documentation claims, it is more appropriate that completeopt=preview as a default. --- runtime/doc/options.txt | 2 +- runtime/doc/vim_diff.txt | 1 + runtime/lua/vim/_meta/options.lua | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index e42fb4f9e4..7aca0268c6 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1528,7 +1528,7 @@ A jump table for the options with a short description can be found at |Q_op|. order. *'completeopt'* *'cot'* -'completeopt' 'cot' string (default "menu,preview") +'completeopt' 'cot' string (default "menu,popup") global or local to buffer |global-local| A comma-separated list of options for Insert mode completion |ins-completion|. The supported values are: diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 9bd23313e3..df79d25198 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -46,6 +46,7 @@ Defaults *defaults* *nvim-defaults* - 'commentstring' defaults to "" - 'compatible' is always disabled - 'complete' excludes "i" +- 'completeopt' defaults to "menu,popup" - 'define' defaults to "". The C ftplugin sets it to "^\\s*#\\s*define" - 'diffopt' defaults to "internal,filler,closeoff,linematch:40" - 'directory' defaults to ~/.local/state/nvim/swap// (|xdg|), auto-created diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index 59e65b0585..775dda59f7 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -1109,7 +1109,7 @@ vim.go.cia = vim.go.completeitemalign --- combination with "menu" or "menuone". --- --- @type string -vim.o.completeopt = "menu,preview" +vim.o.completeopt = "menu,popup" vim.o.cot = vim.o.completeopt vim.bo.completeopt = vim.o.completeopt vim.bo.cot = vim.bo.completeopt -- cgit