diff --git a/modules/completion/helm/autoload/helm.el b/modules/completion/helm/autoload/helm.el index ec741c093..44c7ddd44 100644 --- a/modules/completion/helm/autoload/helm.el +++ b/modules/completion/helm/autoload/helm.el @@ -52,7 +52,8 @@ workspace." (unless (executable-find "rg") (user-error "Couldn't find ripgrep in your PATH")) (require 'helm-rg) - (let ((helm-rg-default-directory (or in (doom-project-root) default-directory)) + (let ((this-command 'helm-rg) + (helm-rg-default-directory (or in (doom-project-root) default-directory)) (helm-rg-default-extra-args (delq nil (list (when all-files "-z -uu") (unless recursive "--maxdepth 1"))))) diff --git a/modules/completion/ivy/autoload/ivy.el b/modules/completion/ivy/autoload/ivy.el index 0a0056008..3bbb1818e 100644 --- a/modules/completion/ivy/autoload/ivy.el +++ b/modules/completion/ivy/autoload/ivy.el @@ -252,7 +252,7 @@ The point of this is to avoid Emacs locking up indexing massive file trees." (unless (executable-find "rg") (user-error "Couldn't find ripgrep in your PATH")) (require 'counsel) - (let* ((ivy-more-chars-alist '((t . 1))) + (let* ((this-command 'counsel-rg) (project-root (or (doom-project-root) default-directory)) (directory (or in project-root)) (args (concat (if all-files " -uu") diff --git a/modules/completion/ivy/config.el b/modules/completion/ivy/config.el index 5c9e85652..562d9a6db 100644 --- a/modules/completion/ivy/config.el +++ b/modules/completion/ivy/config.el @@ -40,7 +40,10 @@ This uses a search algorithm other than ivy's default.") `((counsel-rg . +ivy-standard-search) (swiper . +ivy-standard-search) (swiper-isearch . +ivy-standard-search) - (t . +ivy-alternative-search))) + (t . +ivy-alternative-search)) + ivy-more-chars-alist + '((counsel-rg . 1) + (t . 3))) (define-key! [remap switch-to-buffer] #'+ivy/switch-buffer