Skip to content

Commit 76205dd

Browse files
committed
fix(base16): don't set background where not neeeded
Details: - `ErrorMsg` having background doesn't work if it is displayed in not usual "message area" (like in floating window of `vim._extui` on Neovim>=0.12). - `MsgArea` doesn't need background to be the same as `Normal` bg. - `PmenuMatch[Sel]` groups don't need background as they will blend with `Pmenu`. - `PmenuKind[Sel]` and `PmenuExtra[Sel]` also don't need background, but only on Neovim>=0.11. So instead link them to corresponding `Pmenu` (which is more appropriate solution for them anyway).
1 parent e6e4c9f commit 76205dd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lua/mini/base16.lua

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ H.apply_palette = function(palette, use_cterm)
485485
hi('DiffTextAdd', {link='DiffAdd'})
486486
hi('Directory', {fg=p.base0D, bg=nil, attr=nil, sp=nil})
487487
hi('EndOfBuffer', {fg=p.base03, bg=nil, attr=nil, sp=nil})
488-
hi('ErrorMsg', {fg=p.base08, bg=p.base00, attr=nil, sp=nil})
488+
hi('ErrorMsg', {fg=p.base08, bg=nil, attr=nil, sp=nil})
489489
hi('FloatBorder', {link='NormalFloat'})
490490
hi('FoldColumn', {fg=p.base0C, bg=p.base01, attr=nil, sp=nil})
491491
hi('Folded', {fg=p.base03, bg=p.base01, attr=nil, sp=nil})
@@ -499,20 +499,20 @@ H.apply_palette = function(palette, use_cterm)
499499
hi('MatchParen', {fg=nil, bg=p.base02, attr=nil, sp=nil})
500500
hi('ModeMsg', {fg=p.base0B, bg=nil, attr=nil, sp=nil})
501501
hi('MoreMsg', {fg=p.base0B, bg=nil, attr=nil, sp=nil})
502-
hi('MsgArea', {fg=p.base05, bg=p.base00, attr=nil, sp=nil})
502+
hi('MsgArea', {fg=p.base05, bg=nil, attr=nil, sp=nil})
503503
hi('MsgSeparator', {fg=p.base02, bg=p.base02, attr=nil, sp=nil})
504504
hi('NonText', {fg=p.base03, bg=nil, attr=nil, sp=nil})
505505
hi('Normal', {fg=p.base05, bg=p.base00, attr=nil, sp=nil})
506506
hi('NormalFloat', {fg=p.base05, bg=p.base01, attr=nil, sp=nil})
507507
hi('NormalNC', {fg=p.base05, bg=p.base00, attr=nil, sp=nil})
508508
hi('OkMsg', {fg=p.base0B, bg=nil, attr=nil, sp=nil})
509509
hi('Pmenu', {fg=p.base05, bg=p.base01, attr=nil, sp=nil})
510-
hi('PmenuExtra', {fg=p.base05, bg=p.base01, attr=nil, sp=nil})
511-
hi('PmenuExtraSel', {fg=p.base05, bg=p.base01, attr='reverse', sp=nil})
512-
hi('PmenuKind', {fg=p.base05, bg=p.base01, attr=nil, sp=nil})
513-
hi('PmenuKindSel', {fg=p.base05, bg=p.base01, attr='reverse', sp=nil})
514-
hi('PmenuMatch', {fg=p.base05, bg=p.base01, attr='bold', sp=nil})
515-
hi('PmenuMatchSel', {fg=p.base05, bg=p.base01, attr='bold,reverse', sp=nil})
510+
hi('PmenuExtra', {link='Pmenu'})
511+
hi('PmenuExtraSel', {link='PmenuSel'})
512+
hi('PmenuKind', {link='Pmenu'})
513+
hi('PmenuKindSel', {link='PmenuSel'})
514+
hi('PmenuMatch', {fg=p.base05, bg=nil, attr='bold', sp=nil})
515+
hi('PmenuMatchSel', {fg=p.base05, bg=nil, attr='bold,reverse', sp=nil})
516516
hi('PmenuSbar', {fg=nil, bg=p.base02, attr=nil, sp=nil})
517517
hi('PmenuSel', {fg=p.base05, bg=p.base01, attr='reverse', sp=nil})
518518
hi('PmenuThumb', {fg=nil, bg=p.base07, attr=nil, sp=nil})

0 commit comments

Comments
 (0)