PmenuSel
might need adjustment to work with colored items
#265
Labels
enhancement
New feature or request
PmenuSel
might need adjustment to work with colored items
#265
After vim/vim#15314 and vim/vim#15561 it is now possible for completion items to have a dedicated highlighting through
hl_group
andkind_hlgroup
item fields. Those highlight groups are applied while combining with underlying highlighting. Which is a good thing as it allows to use highlight groups defining only necessary attributes (like foreground, for example, which I'd assume would be very common).However, this can result in poorly readable text if color scheme has
PmenuSel
very different fromPmenu
in terms of background lightness. Here is an example with 'evening' color scheme:One possible solution to this is to switch
fg
/bg
attributes forPmenu*Sel
groups and addreverse
attribute. This way highlighting of "regular" items stays the same while "highlighted" items have colored backgrounds with readable text. Here is an example with adjusted groups:Code used for testing:
The text was updated successfully, but these errors were encountered: