mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
feat(defaults): completeopt=popup #32909
Assuming that completeopt=popup does what its documentation claims, it is more appropriate that completeopt=preview as a default.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
2
runtime/lua/vim/_meta/options.lua
generated
2
runtime/lua/vim/_meta/options.lua
generated
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user