diff options
author | glepnir <glephunter@gmail.com> | 2024-10-03 06:45:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-03 06:45:01 +0800 |
commit | 6a2f8958e832aebc20cf42d8ade4cb58fe33df9e (patch) | |
tree | e2d5750f75a126a32cc7128ab9c5d1e869b5437a /src/nvim/insexpand.c | |
parent | d3b4772ddcd4c890dc5bc38e1f1b36a08aed0c04 (diff) | |
download | rneovim-6a2f8958e832aebc20cf42d8ade4cb58fe33df9e.tar.gz rneovim-6a2f8958e832aebc20cf42d8ade4cb58fe33df9e.tar.bz2 rneovim-6a2f8958e832aebc20cf42d8ade4cb58fe33df9e.zip |
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
https://github.com/vim/vim/commit/6a89c94a9eeee53481ced1a1260a177bffde4c0f
Diffstat (limited to 'src/nvim/insexpand.c')
-rw-r--r-- | src/nvim/insexpand.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c index c17bd27daa..84dd55fa78 100644 --- a/src/nvim/insexpand.c +++ b/src/nvim/insexpand.c @@ -151,13 +151,6 @@ static char *ctrl_x_mode_names[] = { "cmdline", }; -// Array indexes used for cp_text[]. -#define CPT_ABBR 0 ///< "abbr" -#define CPT_MENU 1 ///< "menu" -#define CPT_KIND 2 ///< "kind" -#define CPT_INFO 3 ///< "info" -#define CPT_COUNT 4 ///< Number of entries - /// Structure used to store one match for insert completion. typedef struct compl_S compl_T; struct compl_S { |