Skip to content

Commit

Permalink
Start using ivy-rich
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed May 5, 2020
1 parent 3a47027 commit baaff78
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lisp/init-ivy.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit baaff78

Please sign in to comment.