mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 9.1.0754: fixed order of items in insert-mode completion menu
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: #14006 closes: #15760 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
e021f39b79
commit
6a89c94a9e
11
src/vim.h
11
src/vim.h
@@ -2372,6 +2372,17 @@ typedef enum {
|
||||
FCERR_FAILED, // error while executing the function
|
||||
} funcerror_T;
|
||||
|
||||
/*
|
||||
* Array indexes used for cp_text[].
|
||||
*/
|
||||
typedef enum {
|
||||
CPT_ABBR, // "abbr"
|
||||
CPT_KIND, // "kind"
|
||||
CPT_MENU, // "menu"
|
||||
CPT_INFO, // "info"
|
||||
CPT_COUNT, // Number of entries
|
||||
} cpitem_T;
|
||||
|
||||
/*
|
||||
* Type for the callback function that is invoked after an option value is
|
||||
* changed to validate and apply the new value.
|
||||
|
Reference in New Issue
Block a user