diff --git a/emacs/.emacs.d/config/init-projects.el b/emacs/.emacs.d/config/init-projects.el index 91055de..0b68bb9 100644 --- a/emacs/.emacs.d/config/init-projects.el +++ b/emacs/.emacs.d/config/init-projects.el @@ -4,10 +4,16 @@ (use-package projectile :config (projectile-mode 1) - (leader-def-key "p" '(projectile-command-map :which-key "projectile"))) + (leader-def-key "p" '(projectile-command-map :which-key "projectile")) + (defun consult-projectile-ripgrep () + (interactive) + (let ((dir (or (projectile-project-root) default-directory))) + (consult-ripgrep dir)))) ;; Ripgrep integration (use-package projectile-ripgrep - :after projectile) + :after projectile + :config + (evil-collection-ripgrep-setup)) (provide 'init-projects)