         avy-case-fold-search nil)
   (avy-setup-default))
 
-(use-package hydra
-  :ensure t
-  :defer t)
-
 (use-package ivy
   :ensure t
-  :diminish ivy-mode
   :hook (after-init . ivy-mode)
+  :bind
+  (("M-X" . ivy-resume))
   :config
   (setq ivy-height 12
         ivy-count-format "(%d/%d) "

        ivy-wrap t
        ivy-initial-inputs-alist nil))

(use-package ivy-hydra
  :ensure t
  :after ivy)

(use-package ivy-rich
  :ensure t
  :after ivy
  :config
  (setq ivy-rich-switch-buffer-align-virtual-buffer t)
  (ivy-set-display-transformer 'ivy-switch-buffer 'ivy-rich-switch-buffer-transformer))

(use-package ivy-xref
  :ensure t
  :after ivy
  :config
  (setq xref-show-xrefs-function 'ivy-xref-show-xrefs))


  :config
  (setq amx-auto-update-interval 10
        amx-history-length 5
        amx-backend 'ivy)
  (defalias 'counsel-M-x 'amx))

(use-package projectile
  :ensure t
  :init
  (setq projectile-cache-file (expand-file-name (concat user-emacs-directory ".cache/projectile.cache"))
        projectile-known-projects-file (expand-file-name (concat user-emacs-directory ".cache/projectile-bookmarks.eld")))
