aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-projectile.el
blob: f9239247d2d6153431c87884227e68c01818172c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
(when (gx/maybe-require-package 'projectile)
  (add-hook 'after-init-hook (lambda () (projectile-mode 1))))

(setq projectile-cache-file (expand-file-name ".cache/projectile" user-emacs-directory)
      projectile-require-project-root nil)

(with-eval-after-load 'evil
  (evil-define-key 'normal projectile-mode-map
    (kbd "<leader>fp") 'projectile-switch-project
    (kbd "<leader>ff") 'projectile-find-file
    (kbd "<leader>fr") 'projectile-ripgrep))

(provide 'init-projectile)