Merge pull request #4448 from hoyon/patch-1

Add `--exclude .git` to fd in `projectile-generic-command`
This commit is contained in:
Henrik Lissner 2021-01-03 18:44:55 -05:00 committed by GitHub
commit b90e001ca0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -179,7 +179,7 @@ And if it's a function, evaluate it."
(cl-find-if (doom-rpartial #'executable-find t)
(list "fdfind" "fd"))
doom-projectile-fd-binary))
(concat (format "%s . -0 -H --color=never --type file --type symlink --follow"
(concat (format "%s . -0 -H --color=never --type file --type symlink --follow --exclude .git"
bin)
(if IS-WINDOWS " --path-separator=/"))))
;; Otherwise, resort to ripgrep, which is also faster than find