20 lines
484 B
EmacsLisp
20 lines
484 B
EmacsLisp
;; -*- lexical-binding: t; -*-
|
|
|
|
;; Project management
|
|
(use-package projectile
|
|
:config
|
|
(projectile-mode 1)
|
|
(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
|
|
:config
|
|
(evil-collection-ripgrep-setup))
|
|
|
|
(provide 'init-projects)
|