         ivy-wrap t
         ivy-initial-inputs-alist nil))
 
+(use-package hydra
+  :ensure t
+  :defer t)
+
 (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))
 

        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)
  :config
  (setq ivy-height 12
        ivy-count-format "(%d/%d) "


(use-package magit
  :ensure t
  :defer t
  ;; :commands magit-status
  :config
  (setq magit-completing-read-function 'ivy-completing-read
        magit-diff-refine-hunk 'all))
