blob: 8b944ac2c3f0dbc6299407904ad07754642cc741 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
(when (gx/maybe-require-package 'counsel)
(add-hook 'after-init-hook (lambda () (ivy-mode 1))))
(gx/maybe-require-package 'flx)
(with-eval-after-load 'ivy
(gx/diminish 'ivy-mode))
(with-eval-after-load 'evil
(evil-define-key 'normal ivy-mode-map
(kbd "<leader>fb") 'ivy-switch-buffer
(kbd "<leader>fm") 'counsel-recentf
(kbd "<leader>fc") 'counsel-M-x
(kbd "<leader>fl") 'swiper))
(setq ivy-use-virtual-buffers t)
(setq ivy-count-format "(%d/%d) ")
(setq ivy-initial-inputs-alist nil)
(setq ivy-re-builders-alist
'((ivy-switch-buffer . ivy--regex-plus)
(t . ivy--regex-fuzzy)))
(provide 'init-ivy)
|