summaryrefslogtreecommitdiffstats
path: root/lisp/init-ivy.el
blob: f4de96f18e184288b4af9fb2182bf9b0af0999c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;; ivy uses flx sorting if it's installed
(use-package flx)

(use-package ivy
  :defer nil
  :after flx
  :diminish ivy-mode
  :init
  (setq ivy-re-builders-alist
        ;; use regular matching in swiper
        '((swiper . ivy--regex-plus)
          ;; use fuzzy matching by default'
          (t . ivy--regex-fuzzy)))
  :bind (:map ivy-minibuffer-map
              ;; C-r selects previous candidate, like isearch
              ("C-r" . ivy-previous-line-or-history))
  :config
  (ivy-mode 1))

(provide 'init-ivy)