More icons for ivy.
This commit is contained in:
parent
923561f418
commit
828e16c7da
13
init.el
13
init.el
|
@ -586,10 +586,17 @@ With argument, do this that many times."
|
||||||
("M-x" . 'counsel-M-x)
|
("M-x" . 'counsel-M-x)
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Nicer interface for ivy
|
;; Use icons in ivy.
|
||||||
(use-package ivy-rich
|
(use-package all-the-icons-ivy
|
||||||
:after (all-the-icons counsel)
|
:after (all-the-icons counsel)
|
||||||
:config
|
: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.
|
;; Icons in switch-buffer.
|
||||||
(defun my/ivy-rich-switch-buffer-icon (candidate)
|
(defun my/ivy-rich-switch-buffer-icon (candidate)
|
||||||
(with-current-buffer
|
(with-current-buffer
|
||||||
|
@ -598,6 +605,8 @@ With argument, do this that many times."
|
||||||
(if (symbolp icon)
|
(if (symbolp icon)
|
||||||
(all-the-icons-icon-for-mode 'fundamental-mode)
|
(all-the-icons-icon-for-mode 'fundamental-mode)
|
||||||
icon))))
|
icon))))
|
||||||
|
|
||||||
|
;; More detailed buffer view.
|
||||||
(setq ivy-rich-display-transformers-list
|
(setq ivy-rich-display-transformers-list
|
||||||
'(ivy-switch-buffer
|
'(ivy-switch-buffer
|
||||||
(:columns
|
(:columns
|
||||||
|
|
Loading…
Reference in New Issue
Block a user