Configure projectile-ripgrep

This commit is contained in:
Jeremy Dormitzer 2021-02-22 17:07:20 -05:00
parent d6f3a00e26
commit 6f445d35ca

View File

@ -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)