blob: 52c92ff229577141fd18db47064ef524849ec299 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
(when (gx/maybe-require-package 'counsel)
(add-hook 'after-init-hook (lambda () (ivy-mode 1))))
(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)
|