refactor(vertico): +vertico-consult-fd-args
Initialize as nil with a defvar, and only change the value if the user hasn't set it themselves.
This commit is contained in:
parent
7762386e52
commit
6022579231
1 changed files with 9 additions and 7 deletions
|
@ -7,6 +7,8 @@ The completion/vertico module uses the orderless completion style by default,
|
||||||
but this returns too broad a candidate set for company completion. This variable
|
but this returns too broad a candidate set for company completion. This variable
|
||||||
overrides `completion-styles' during company completion sessions.")
|
overrides `completion-styles' during company completion sessions.")
|
||||||
|
|
||||||
|
(defvar +vertico-consult-fd-args nil
|
||||||
|
"Shell command and arguments the vertico module uses for fd.")
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; Packages
|
;;; Packages
|
||||||
|
@ -99,13 +101,13 @@ overrides `completion-styles' during company completion sessions.")
|
||||||
consult-async-refresh-delay 0.15
|
consult-async-refresh-delay 0.15
|
||||||
consult-async-input-throttle 0.2
|
consult-async-input-throttle 0.2
|
||||||
consult-async-input-debounce 0.1)
|
consult-async-input-debounce 0.1)
|
||||||
|
(unless +vertico-consult-fd-args
|
||||||
(setq +vertico-consult-fd-args
|
(setq +vertico-consult-fd-args
|
||||||
(if doom-projectile-fd-binary
|
(if doom-projectile-fd-binary
|
||||||
(format "%s --color=never -i -H -E .git --regex %s"
|
(format "%s --color=never -i -H -E .git --regex %s"
|
||||||
doom-projectile-fd-binary
|
doom-projectile-fd-binary
|
||||||
(if IS-WINDOWS "--path-separator=/" ""))
|
(if IS-WINDOWS "--path-separator=/" ""))
|
||||||
consult-find-args))
|
consult-find-args)))
|
||||||
|
|
||||||
(consult-customize
|
(consult-customize
|
||||||
consult-ripgrep consult-git-grep consult-grep
|
consult-ripgrep consult-git-grep consult-grep
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue