From 2253e7f4679559cb518560b6e46a04e6a9cc3453 Mon Sep 17 00:00:00 2001 From: Ho-Yon Mak Date: Thu, 17 Dec 2020 22:57:17 +0000 Subject: [PATCH] Add `--exclude .git` to fd in `projectile-generic-command` --- core/core-projects.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-projects.el b/core/core-projects.el index 487015d47..7693d4dd4 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -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