Change :around advice to :override
This commit is contained in:
parent
847bbf380c
commit
67c5de0313
1 changed files with 2 additions and 2 deletions
|
@ -133,10 +133,10 @@ c) are not valid projectile projects."
|
||||||
;; HACK Don't rely on VCS-specific commands to generate our file lists. That's
|
;; HACK Don't rely on VCS-specific commands to generate our file lists. That's
|
||||||
;; 7 commands to maintain, versus the more generic, reliable and
|
;; 7 commands to maintain, versus the more generic, reliable and
|
||||||
;; performant `fd' or `ripgrep'.
|
;; performant `fd' or `ripgrep'.
|
||||||
(defadvice! doom--only-use-generic-command-a (orig-fn vcs)
|
(defadvice! doom--only-use-generic-command-a (vcs)
|
||||||
"Only use `projectile-generic-command' for indexing project files.
|
"Only use `projectile-generic-command' for indexing project files.
|
||||||
And if it's a function, evaluate it."
|
And if it's a function, evaluate it."
|
||||||
:around #'projectile-get-ext-command
|
:override #'projectile-get-ext-command
|
||||||
(if (functionp projectile-generic-command)
|
(if (functionp projectile-generic-command)
|
||||||
(funcall projectile-generic-command vcs)
|
(funcall projectile-generic-command vcs)
|
||||||
projectile-generic-command))
|
projectile-generic-command))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue