Merge pull request #1031 from ar1a/magit-fd

Use fd for populating projectile cache
This commit is contained in:
Henrik Lissner 2018-12-04 18:18:45 -05:00 committed by GitHub
commit 10a732a89a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -52,7 +52,14 @@
"Don't traverse the file system if on a remote connection."
(unless (file-remote-p default-directory)
(funcall orig-fn file name)))
(advice-add #'projectile-locate-dominating-file :around #'doom*projectile-locate-dominating-file))
(advice-add #'projectile-locate-dominating-file :around #'doom*projectile-locate-dominating-file)
;; If fd exists, use it for git and generic projects
;; fd is a rust program that is significantly faster. It also respects
;; .gitignore. This is recommended in the projectile docs
(when (executable-find "fd")
(setq projectile-git-command "fd . --type f -0"
projectile-generic-command projectile-git-command)))
;;

View file

@ -49,6 +49,7 @@ what features are available.")
(when doom-leader-key
(define-key magit-diff-mode-map (kbd doom-leader-key) nil)))
(def-package! magit-todos
:hook (magit-mode . magit-todos-mode)
:config