2021-02-21 02:59:11 +00:00
|
|
|
;; -*- lexical-binding: t; -*-
|
|
|
|
|
2021-02-20 11:40:03 +00:00
|
|
|
;; Project management
|
|
|
|
(use-package projectile
|
|
|
|
:config
|
|
|
|
(projectile-mode 1)
|
2021-02-22 22:07:20 +00:00
|
|
|
(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))))
|
2021-02-20 11:40:03 +00:00
|
|
|
|
2021-02-21 19:47:53 +00:00
|
|
|
;; Ripgrep integration
|
|
|
|
(use-package projectile-ripgrep
|
2021-02-22 22:07:20 +00:00
|
|
|
:after projectile
|
|
|
|
:config
|
|
|
|
(evil-collection-ripgrep-setup))
|
2021-02-21 19:47:53 +00:00
|
|
|
|
2021-02-20 11:40:03 +00:00
|
|
|
(provide 'init-projects)
|