   :ensure t
   :after counsel
   :init
-  (setq smex-save-file (concat user-emacs-directory ".cache/smex-items")))
+  (setq smex-save-file (concat user-emacs-directory ".cache/smex-items"))
+  :config
+  (setq smex-completion-method 'ivy)
+  (smex-initialize))
 
 (use-package projectile
   :ensure t

                                (t . ivy--regex-plus))
        ivy-virtual-abbreviate 'full
        ivy-wrap t
        magit-completing-read-function 'ivy-completing-read
        smex-completion-method         'ivy))

(use-package ivy-hydra
  :ensure t


(use-package swiper
  :ensure t
  :commands swiper swiper-all
  :config
  (setq swiper-include-line-number-in-search t))

(use-package counsel
  :ensure t
  :after ivy
  :config
  (setq counsel-mode-override-describe-bindings t
        counsel-find-file-at-point t))
