diff --git a/modules/completion/helm/autoload/helm.el b/modules/completion/helm/autoload/helm.el index c8bb41c2f..c7bfe982d 100644 --- a/modules/completion/helm/autoload/helm.el +++ b/modules/completion/helm/autoload/helm.el @@ -57,7 +57,7 @@ workspace." (helm-rg-default-extra-args (delq nil (append (list (when all-files "-z -uu") (unless recursive "--maxdepth 1") - "--hidden") + "--hidden" "-g" "!.git") args)))) (setq deactivate-mark t) (helm-rg (or query diff --git a/modules/completion/ivy/autoload/ivy.el b/modules/completion/ivy/autoload/ivy.el index 70d9f3e7c..f005b5632 100644 --- a/modules/completion/ivy/autoload/ivy.el +++ b/modules/completion/ivy/autoload/ivy.el @@ -272,8 +272,8 @@ The point of this is to avoid Emacs locking up indexing massive file trees." (directory (or in project-root)) (args (concat (if all-files " -uu") (unless recursive " --maxdepth 1") - " --hidden" - " " (mapconcat #'shell-quote-argument args " ")))) + " --hidden -g!.git " + (mapconcat #'shell-quote-argument args " ")))) (setq deactivate-mark t) (counsel-rg (or query