aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2024-10-17 14:01:29 +0300
committerChristian Clason <ch.clason+github@icloud.com>2024-10-31 09:47:40 +0100
commit295920845ebd78b2bad210eba51824369de44b19 (patch)
treededaf31e1b551973b294586dce83f37257ef2566
parent8df682250768be9a07f855bb89ada665b7626413 (diff)
downloadrneovim-295920845ebd78b2bad210eba51824369de44b19.tar.gz
rneovim-295920845ebd78b2bad210eba51824369de44b19.tar.bz2
rneovim-295920845ebd78b2bad210eba51824369de44b19.zip
feat(highlight): make `PmenuMatch` and `PmenuMatchSel` bold
Problem: both `PmenuMatch` and `PmenuMatchSel` can provide helpful information about characters which actually match query in completion candidates. This is not as useful with default regular match, but much more useful with 'completopt+=fuzzy'. Solution: make both highlight groups bold. This will also affect (i.e. benefit) other color schemes which do not define groups separately. This is possible since the recently merged changes to `PmenuMatch` and `PmenuMatchSel` combine attributes with underlying "base" groups. See PR 29980.
-rw-r--r--src/nvim/highlight_group.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c
index 1a0ae3ac49..4243c7573e 100644
--- a/src/nvim/highlight_group.c
+++ b/src/nvim/highlight_group.c
@@ -144,6 +144,8 @@ static const char e_missing_argument_str[]
static const char *highlight_init_both[] = {
"Cursor guifg=bg guibg=fg",
"CursorLineNr gui=bold cterm=bold",
+ "PmenuMatch gui=bold cterm=bold",
+ "PmenuMatchSel gui=bold cterm=bold",
"PmenuSel gui=reverse cterm=reverse,underline blend=0",
"RedrawDebugNormal gui=reverse cterm=reverse",
"TabLineSel gui=bold cterm=bold",
@@ -170,8 +172,6 @@ static const char *highlight_init_both[] = {
"default link PmenuExtraSel PmenuSel",
"default link PmenuKind Pmenu",
"default link PmenuKindSel PmenuSel",
- "default link PmenuMatch Pmenu",
- "default link PmenuMatchSel PmenuSel",
"default link PmenuSbar Pmenu",
"default link Substitute Search",
"default link StatusLineTerm StatusLine",