completion/vertico: use fd for counsel-find

If available.
This commit is contained in:
Henrik Lissner 2021-07-25 18:02:46 -04:00
parent 617fc7f1cc
commit cac9158b36

View file

@ -85,6 +85,15 @@ overrides `completion-styles' during company completion sessions.")
(setq consult-project-root-function #'doom-project-root (setq consult-project-root-function #'doom-project-root
consult-narrow-key "<" consult-narrow-key "<"
consult-line-numbers-widen t) consult-line-numbers-widen t)
(when doom-projectile-fd-binary
(setq consult-async-refresh-delay 0.2
consult-async-input-throttle 0.3)
(setq consult-find-command
(format "%s -i -H -E .git --regex %s ARG OPTS"
doom-projectile-fd-binary
(if IS-WINDOWS "--path-separator=/" ""))))
(consult-customize (consult-customize
consult-ripgrep consult-git-grep consult-grep consult-ripgrep consult-git-grep consult-grep
consult-bookmark consult-recent-file consult-bookmark consult-recent-file