Style the 'consult-preview-insertion' face

The default style inherits from the 'region' face. This is fine in
some cases, though not when the user calls 'consult-outline' in a
buffer with hidden text (e.g. Org folded headings). There the
background is applied to the entire heading's surface area, which is
too distracting while cycling through completion candidates and
inspecting the preview.
This commit is contained in:
Protesilaos Stavrou 2023-12-24 17:00:23 +02:00
parent 39ab1ab5ea
commit 564c4f3758
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -1998,6 +1998,7 @@ FG and BG are the main colors."
`(consult-imenu-prefix ((,c :inherit shadow)))
`(consult-line-number ((,c :inherit shadow)))
`(consult-line-number-prefix ((,c :inherit shadow)))
`(consult-preview-insertion ((,c :background ,bg-dim)))
;;;;; corfu
`(corfu-current ((,c :inherit modus-themes-completion-selected)))
`(corfu-bar ((,c :background ,fg-dim)))