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>
diff --git a/src/vim.h b/src/vim.h
index 9c1434c..ebca6ae 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -2373,6 +2373,17 @@
} 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.
*