completion/ivy: fix ivy-rich integration

This commit is contained in:
Henrik Lissner 2018-09-19 23:34:00 -04:00
parent 77255a63e0
commit f415762e8b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -66,12 +66,6 @@ immediately runs it on the current candidate (ending the ivy session)."
(ivy-mode +1)
;; Show more buffer information in switch-buffer commands
(after! ivy-rich
(dolist (cmd '(ivy-switch-buffer +ivy/switch-workspace-buffer
counsel-projectile-switch-to-buffer))
(ivy-set-display-transformer cmd '+ivy-buffer-transformer)))
(def-package! ivy-hydra
:commands (ivy-dispatching-done-hydra ivy--matcher-desc)
:init
@ -80,6 +74,15 @@ immediately runs it on the current candidate (ending the ivy session)."
(kbd "M-o") #'ivy-dispatching-done-hydra)))
(def-package! ivy-rich
:hook (ivy-mode . ivy-rich-mode)
:config
;; Show more buffer information in other switch-buffer commands too
(dolist (cmd '(ivy-switch-buffer +ivy/switch-workspace-buffer
counsel-projectile-switch-to-buffer))
(ivy-set-display-transformer cmd 'ivy-rich--ivy-switch-buffer-transformer)))
(def-package! counsel
:commands counsel-describe-face
:init