(use-package counsel :ensure t :defer t) (add-hook 'after-init-hook (lambda () (ivy-mode 1))) (with-eval-after-load 'evil (evil-define-key 'normal ivy-mode-map (kbd "fb") 'ivy-switch-buffer (kbd "fm") 'counsel-recentf (kbd "fc") 'counsel-M-x (kbd "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)