mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix doom/help-search-load-path & doom/help-search-loaded-files
When counsel-rg-base-command is a string, instead of a list.
This commit is contained in:
@ -633,7 +633,11 @@ config blocks in your private config."
|
|||||||
(unless (executable-find "rg")
|
(unless (executable-find "rg")
|
||||||
(user-error "Can't find ripgrep on your system"))
|
(user-error "Can't find ripgrep on your system"))
|
||||||
(if (fboundp 'counsel-rg)
|
(if (fboundp 'counsel-rg)
|
||||||
(let ((counsel-rg-base-command (append counsel-rg-base-command dirs)))
|
(let ((counsel-rg-base-command
|
||||||
|
(if (stringp counsel-rg-base-command)
|
||||||
|
(format counsel-rg-base-command
|
||||||
|
(concat "%s " (mapconcat #'shell-quote-argument dirs " ")))
|
||||||
|
(append counsel-rg-base-command dirs))))
|
||||||
(counsel-rg query nil "-Lz" prompt))
|
(counsel-rg query nil "-Lz" prompt))
|
||||||
;; TODO Add helm support?
|
;; TODO Add helm support?
|
||||||
(grep-find
|
(grep-find
|
||||||
|
Reference in New Issue
Block a user