mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Improve projectile-git-command
When indexing it ignores hidden files, which is especially annoying for dotfiles where everything starts with a dot. If you just have -H it'll index .git too though, so we exclude that
This commit is contained in:
@ -59,7 +59,7 @@
|
|||||||
;; If fd exists, use it for git and generic projects
|
;; If fd exists, use it for git and generic projects
|
||||||
;; fd is a rust program that is significantly faster. It also respects
|
;; fd is a rust program that is significantly faster. It also respects
|
||||||
;; .gitignore. This is recommended in the projectile docs
|
;; .gitignore. This is recommended in the projectile docs
|
||||||
(when (executable-find "fd")
|
(when (executable-find "fd")
|
||||||
(setq projectile-git-command "fd . --type f -0 -H -E .git"
|
(setq projectile-git-command "fd . --type f -0 -H -E .git"
|
||||||
projectile-generic-command projectile-git-command)))
|
projectile-generic-command projectile-git-command)))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user