From 6f445d35ca110b3d96e347cd5c69d33e99a8aaa6 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 22 Feb 2021 17:07:20 -0500 Subject: [PATCH] Configure projectile-ripgrep --- emacs/.emacs.d/config/init-projects.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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)