Fix projectile failing to index symlinks
Fixes cases where, if the contents of your ~/.doom.d were symlinks, fd and ripgrep wouldn't index them (or recurse into them), so it'd miss out of many files. Possibly fixes #1803
This commit is contained in:
parent
1fb5981ba6
commit
ea1a1805b3
2 changed files with 6 additions and 4 deletions
|
@ -264,9 +264,11 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
|
|||
:override #'counsel--find-return-list
|
||||
(cl-destructuring-bind (find-program . args)
|
||||
(cond ((executable-find doom-projectile-fd-binary)
|
||||
(cons doom-projectile-fd-binary (list "-t" "f" "-t" "l" "-E" ".git")))
|
||||
(cons doom-projectile-fd-binary
|
||||
(list "--color=never" "-E" ".git"
|
||||
"--type" "file" "--type" "symlink" "--follow")))
|
||||
((executable-find "rg")
|
||||
(append (list "rg" "--files" "--color=never" "--hidden" "--no-messages")
|
||||
(append (list "rg" "--files" "--follow" "--color=never" "--hidden" "--no-messages")
|
||||
(cl-loop for dir in projectile-globally-ignored-directories
|
||||
collect "--glob" and collect (concat "!" dir))
|
||||
(if IS-WINDOWS (list "--path-separator" "/"))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue