mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +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:
@@ -1426,6 +1426,26 @@ return {
|
||||
type = 'string',
|
||||
varname = 'p_cfu',
|
||||
},
|
||||
{
|
||||
abbreviation = 'cia',
|
||||
cb = 'did_set_completeitemalign',
|
||||
defaults = { if_true = 'abbr,kind,menu' },
|
||||
deny_duplicates = true,
|
||||
desc = [=[
|
||||
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.
|
||||
]=],
|
||||
full_name = 'completeitemalign',
|
||||
list = 'onecomma',
|
||||
scope = { 'global' },
|
||||
short_desc = N_('Insert mode completion item align order'),
|
||||
type = 'string',
|
||||
varname = 'p_cia',
|
||||
},
|
||||
{
|
||||
abbreviation = 'cot',
|
||||
cb = 'did_set_completeopt',
|
||||
|
Reference in New Issue
Block a user