mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
completion/helm: fix void-variable error #954
The grep backend assumes helm-projectile is available and references its variables, but in some cases, it won't be (e.g. if a search command is used early enough after startup).
This commit is contained in:
@ -62,6 +62,7 @@ workspace."
|
||||
|
||||
;;
|
||||
(defun +helm--grep-source ()
|
||||
(require 'helm-projectile)
|
||||
(helm-build-async-source (capitalize (helm-grep-command t))
|
||||
:header-name (lambda (_name) "Helm Projectile Grep (C-c ? Help)")
|
||||
:candidates-process #'helm-grep-collect-candidates
|
||||
|
Reference in New Issue
Block a user