dotfiles/emacs/.emacs.d/config/init-projects.el
2021-02-22 17:07:20 -05:00

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)