More icons for ivy.

This commit is contained in:
tastytea 2019-08-07 00:06:35 +02:00
parent 923561f418
commit 828e16c7da
1 changed files with 11 additions and 2 deletions

13
init.el
View File

@ -586,10 +586,17 @@ With argument, do this that many times."
("M-x" . 'counsel-M-x)
)
;; Nicer interface for ivy
(use-package ivy-rich
;; Use icons in ivy.
(use-package all-the-icons-ivy
:after (all-the-icons counsel)
:config
(all-the-icons-ivy-setup)
)
;; Nicer interface for ivy.
(use-package ivy-rich
:after (all-the-icons-ivy counsel)
:config
;; Icons in switch-buffer.
(defun my/ivy-rich-switch-buffer-icon (candidate)
(with-current-buffer
@ -598,6 +605,8 @@ With argument, do this that many times."
(if (symbolp icon)
(all-the-icons-icon-for-mode 'fundamental-mode)
icon))))
;; More detailed buffer view.
(setq ivy-rich-display-transformers-list
'(ivy-switch-buffer
(:columns