refactor: generalize fd/ripgrep vars & options

I intend to eventually replace projectile with project.el, so these
doom-projectile-* variables need to be generalized, starting with the
fd/ripgrep executable paths.

ALong with that, this refactors Doom's projectile-generic-command to
lean more on built-in fd support in projectile, where possible (fewer
wheels reinvented).

Ref: doomemacs/core#1
This commit is contained in:
Henrik Lissner 2024-08-09 20:54:23 -04:00
parent 939fc0d322
commit 4fcf332749
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
5 changed files with 48 additions and 33 deletions

View file

@ -219,7 +219,7 @@ in."
file (/ size 1024 1024.0))
(explain! "Consider deleting it from your system (manually)"))))
(unless (ignore-errors (executable-find doom-projectile-fd-binary))
(unless (ignore-errors (executable-find doom-fd-executable))
(warn! "Couldn't find the `fd' binary; project file searches will be slightly slower"))
(require 'projectile)