Change path separator on Windows when using fd

Show slash instead of backslash
This commit is contained in:
chuxubank 2020-05-12 15:32:37 +08:00
parent 272d8867af
commit 8a70dd0379
2 changed files with 6 additions and 5 deletions

View file

@ -146,8 +146,9 @@ c) are not valid projectile projects."
;; .gitignore. This is recommended in the projectile docs.
((executable-find doom-projectile-fd-binary)
(setq projectile-generic-command
(format "%s . -0 -H -E .git --color=never --type file --type symlink --follow"
doom-projectile-fd-binary)
(concat (format "%s . -0 -H -E .git --color=never --type file --type symlink --follow"
doom-projectile-fd-binary)
(if IS-WINDOWS " --path-separator=/"))
projectile-git-command projectile-generic-command
projectile-git-submodule-command nil
;; ensure Windows users get fd's benefits