diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-03-11 10:05:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 10:05:47 +0800 |
commit | 8cb5b995b6e4d86035e6950d92c0c68ab4e46787 (patch) | |
tree | f82e021bea111cc4ad18a16c52f72efcde1e6c8b /src/nvim/highlight_defs.h | |
parent | 29a43ef8affbb9ecbae03b75db346205ffe9ec14 (diff) | |
download | rneovim-8cb5b995b6e4d86035e6950d92c0c68ab4e46787.tar.gz rneovim-8cb5b995b6e4d86035e6950d92c0c68ab4e46787.tar.bz2 rneovim-8cb5b995b6e4d86035e6950d92c0c68ab4e46787.zip |
vim-patch:9.0.1397: highlight for popupmenu kind and extra cannot be set (#22619)
Problem: Highlight for popupmenu kind and extra cannot be set.
Solution: Add PmenuKind, PmenuKindSel, PmenuExtra and PmenuExtraSel
highlight groups and use them. (Gianmaria Bajo, closes vim/vim#12114)
https://github.com/vim/vim/commit/6a7c7749204b256e779c245b1e999bf852ad7b64
Co-authored-by: Gianmaria Bajo <mg1979.git@gmail.com>
Diffstat (limited to 'src/nvim/highlight_defs.h')
-rw-r--r-- | src/nvim/highlight_defs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/highlight_defs.h b/src/nvim/highlight_defs.h index 95c81ac9db..a5586659c7 100644 --- a/src/nvim/highlight_defs.h +++ b/src/nvim/highlight_defs.h @@ -100,6 +100,10 @@ typedef enum { HLF_SPL, // SpellLocal HLF_PNI, // popup menu normal item HLF_PSI, // popup menu selected item + HLF_PNK, // popup menu normal item "kind" + HLF_PSK, // popup menu selected item "kind" + HLF_PNX, // popup menu normal item "menu" (extra text) + HLF_PSX, // popup menu selected item "menu" (extra text) HLF_PSB, // popup menu scrollbar HLF_PST, // popup menu scrollbar thumb HLF_TP, // tabpage line @@ -165,6 +169,10 @@ EXTERN const char *hlf_names[] INIT(= { [HLF_SPL] = "SpellLocal", [HLF_PNI] = "Pmenu", [HLF_PSI] = "PmenuSel", + [HLF_PNK] = "PmenuKind", + [HLF_PSK] = "PmenuKindSel", + [HLF_PNX] = "PmenuExtra", + [HLF_PSX] = "PmenuExtraSel", [HLF_PSB] = "PmenuSbar", [HLF_PST] = "PmenuThumb", [HLF_TP] = "TabLine", |