diff --git a/modules/completion/ivy/autoload/ivy.el b/modules/completion/ivy/autoload/ivy.el index 367b45bbb..95708acd7 100644 --- a/modules/completion/ivy/autoload/ivy.el +++ b/modules/completion/ivy/autoload/ivy.el @@ -399,11 +399,11 @@ order. (counsel-projectile-grep)) (counsel-projectile-grep))))) (`ag - (let ((args (concat " -S" (if all-files " -a") + (let ((args (concat (if all-files " -a") (unless recursive " --depth 1")))) (counsel-ag query directory args (format prompt args)))) (`rg - (let ((args (concat " -S" (if all-files " -uu") + (let ((args (concat (if all-files " -uu") (unless recursive " --maxdepth 1")))) (counsel-rg query directory args (format prompt args)))) (_ (error "No search engine specified"))))))