summaryrefslogtreecommitdiffstats
path: root/lisp/init-ivy.el
blob: 55b60b243462a64146b476cf2b9528b37d3c43b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;;; init-ivy.el --- configure ivy  -*- lexical-binding:t -*-
;;; Commentary:
;;; Code:

;; ivy uses flx sorting if it's installed
(use-package flx
  :ensure t)

(use-package ivy
  :ensure t
  :diminish ivy-mode
  :init
  ;; use fuzzy matching by default
  (setq ivy-re-builders-alist '((t . ivy--regex-fuzzy)))

  ;; allow selecting literal input
  (setq ivy-use-selectable-prompt t)

  :config
  (ivy-mode 1))

(provide 'init-ivy)

;;; init-ivy.el ends here