mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
vim-patch:9.1.0754: fixed order of items in insert-mode completion menu (#30619)
Problem: fixed order of items in insert-mode completion menu
Solution: Introduce the 'completeitemalign' option with default
value "abbr,kind,menu" (glepnir).
Adding an new option `completeitemalign` abbr is `cia` to custom
the complete-item order in popupmenu.
closes: vim/vim#14006
closes: vim/vim#15760
6a89c94a9e
This commit is contained in:
13
runtime/lua/vim/_meta/options.lua
generated
13
runtime/lua/vim/_meta/options.lua
generated
@@ -1055,6 +1055,19 @@ vim.o.cfu = vim.o.completefunc
|
||||
vim.bo.completefunc = vim.o.completefunc
|
||||
vim.bo.cfu = vim.bo.completefunc
|
||||
|
||||
--- A comma-separated list of `complete-items` that controls the alignment
|
||||
--- and display order of items in the popup menu during Insert mode
|
||||
--- completion. The supported values are abbr, kind, and menu. These
|
||||
--- options allow to customize how the completion items are shown in the
|
||||
--- popup menu. Note: must always contain those three values in any
|
||||
--- order.
|
||||
---
|
||||
--- @type string
|
||||
vim.o.completeitemalign = "abbr,kind,menu"
|
||||
vim.o.cia = vim.o.completeitemalign
|
||||
vim.go.completeitemalign = vim.o.completeitemalign
|
||||
vim.go.cia = vim.go.completeitemalign
|
||||
|
||||
--- A comma-separated list of options for Insert mode completion
|
||||
--- `ins-completion`. The supported values are:
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user