From baaff7823d2450b11aa9da4c461648def5ef2f32 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Wed, 6 May 2020 10:45:02 +1200 Subject: [PATCH] Start using ivy-rich --- lisp/init-ivy.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/init-ivy.el b/lisp/init-ivy.el index 6ee349e740..492f07515b 100644 --- a/lisp/init-ivy.el +++ b/lisp/init-ivy.el @@ -24,7 +24,14 @@ (define-key ivy-occur-mode-map (kbd "C-c C-q") #'ivy-wgrep-change-to-wgrep-mode) (when (maybe-require-package 'diminish) - (diminish 'ivy-mode)))) + (diminish 'ivy-mode))) + (when (maybe-require-package 'ivy-rich) + (setq ivy-virtual-abbreviate 'abbreviate + ivy-rich-switch-buffer-align-virtual-buffer nil + ivy-rich-path-style 'abbrev) + (after-load 'ivy + (setcdr (assq t ivy-format-functions-alist) #'ivy-format-function-line)) + (add-hook 'ivy-mode-hook (lambda () (ivy-rich-mode ivy-mode))))) (when (maybe-require-package 'counsel) (setq-default counsel-mode-override-describe-bindings t)