Skip to content

Commit

Permalink
refactor(kind-icon): more explicit setup
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jun 14, 2023
1 parent 3307d20 commit 5728453
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions core/me-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,13 @@
:after corfu
:demand t
:custom
(kind-icon-default-style '(:padding 0
:stroke 0
:margin 0
:radius 0
:height 0.8
:scale 1.05)) ; Fix the scaling/height
(kind-icon-use-icons (+emacs-features-p 'rsvg)) ; Use icons only in Emacs built with SVG support
(kind-icon-default-face 'corfu-default) ; Have background color be the same as `corfu' face background
(kind-icon-blend-background nil) ; Use midpoint color between foreground and background colors ("blended")?
:config
;; Fix the scaling/height
(plist-put kind-icon-default-style :scale 1.05)
(plist-put kind-icon-default-style :height 0.8)
(add-to-list 'corfu-margin-formatters #'kind-icon-margin-formatter))

(use-package consult
Expand Down

0 comments on commit 5728453

Please sign in to comment.