make fd respect projectile-globally-ignored-directories

This commit is contained in:
wedens 2020-06-13 23:31:12 +07:00
parent 0f3bd57101
commit 79f62a6d3e

View file

@ -138,6 +138,9 @@ c) are not valid projectile projects."
(setq projectile-generic-command (setq projectile-generic-command
(concat (format "%s . -0 -H -E .git --color=never --type file --type symlink --follow" (concat (format "%s . -0 -H -E .git --color=never --type file --type symlink --follow"
doom-projectile-fd-binary) doom-projectile-fd-binary)
(cl-loop for dir in projectile-globally-ignored-directories
concat " -E "
concat (shell-quote-argument dir))
(if IS-WINDOWS " --path-separator=//")) (if IS-WINDOWS " --path-separator=//"))
projectile-git-command projectile-generic-command projectile-git-command projectile-generic-command
projectile-git-submodule-command nil projectile-git-submodule-command nil