blob: db594810713644f3198a728e0c91ce235cf69897 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
(when (gx/maybe-require-package 'counsel)
(add-hook 'after-init-hook (lambda () (ivy-mode 1))))
(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-re-builders-alist
'((read-file-name-internal . ivy--regex-fuzzy)
(t . ivy--regex-plus)))
(provide 'init-ivy)
|