Fixes for ivy-switch-buffer icons

Corrects the ivy-switch-buffer transformer to use buffer icons (not file
icons), and fixes alignment issues in the icon display.
This commit is contained in:
Andrew Whatson 2019-04-26 23:48:49 +10:00
parent c79cf3c820
commit 9cdd5b2f99
2 changed files with 14 additions and 9 deletions

View file

@ -88,7 +88,7 @@ immediately runs it on the current candidate (ending the ivy session)."
:after ivy
:config
(when (featurep! +icons)
(cl-pushnew '(all-the-icons-ivy-icon-for-file (:width 2 :align right))
(cl-pushnew '(+ivy-rich-buffer-icon)
(cadr (plist-get ivy-rich-display-transformers-list
'ivy-switch-buffer))))