diff options
Diffstat (limited to '.emacs.d/lisp/init-projectile.el')
-rw-r--r-- | .emacs.d/lisp/init-projectile.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-projectile.el b/.emacs.d/lisp/init-projectile.el new file mode 100644 index 0000000..6f305b6 --- /dev/null +++ b/.emacs.d/lisp/init-projectile.el @@ -0,0 +1,13 @@ +(use-package projectile :ensure t :defer t) + +(setq projectile-cache-file (expand-file-name ".cache/projectile" user-emacs-directory) + projectile-require-project-root nil) +(add-hook 'after-init-hook (lambda () (projectile-mode 1))) + +(with-eval-after-load 'evil + (evil-define-key 'normal projectile-mode-map + (kbd "<leader>p") 'projectile-command-map + (kbd "<leader>ff") 'projectile-find-file + (kbd "<leader>fr") 'projectile-ripgrep)) + +(provide 'init-projectile) |