Search results are not highlighted
Closed this issue · 8 comments
After installing the catppuccin theme in spacemacs, it is impossible to distinguish the highlighted choice in certain scenarios, like for example by searching for a command with M-x. In the attached picture, choice no 4 is selected, and I suppose the background color should have changed to indicate that. I've tried changing every exposed color in the mocha palette, but none of the options seem to affect the choice highlight.
Compare to the default theme, there you can easily see the highlighted choice:
huh, I think we're missing some faces here. I'll check it out later this week, just need to fix my emacs install.
I'm not familiar with spacemacs, but to me it looks like catppuccin isn't loaded at all. Spacemacs probably has it's own way for setting a theme. Are you sure catppuccin is properly set?
Perhaps I'm doing it wrong, but I do see (most of) the colors. I configured this:
dotspacemacs-additional-packages '(catppuccin-theme)
dotspacemacs-themes '(catppuccin)
Are any of the faces displaying catppuccin colors? Either the theme is not set properly or something else is overriding the faces. Maybe try setting it interactively with load-theme and see if it displays the right colors.
Interesting - when I load the theme manually using load-theme
I get this:
The colors (presumably) missing from the catppuccin theme is then the colors from the previous theme (doom-palenight, see the lime green text for example?). It really looks like there are some faces missing from the theme definition. I will try with a minimal config/without spacemacs layers asap to verify if it is some configuration of spacemacs that interferes.
I have confirmed that it's not a Spacemacs issue. This is a screenshot taken with a minimal emacs config:
The highlight background color etc is still missing. For completeness/reproducibility, this is the complete init.el
:
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 6))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'catppuccin-theme)
(load-theme 'catppuccin :no-confirm)
(straight-use-package 'helm)
(global-set-key (kbd "M-x") 'helm-M-x)
It just loads straight.el
, catppuccin-theme
and helm
just to see the missing colors easily.
Ah, I get it now. Doomemacs uses vertico
by default so probably most people stick with that.
You could either setup vertico, or add the helm
faces. It looks like someone already did some work.
Lines 588 to 617 in 89e4013
(straight-use-package 'vertico)
(use-package vertico
:init
(vertico-mode))
Perfect, thank you :)