From 4fc11b696e109db27321850203ce897be438b512 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 7 Sep 2024 14:20:29 -0400 Subject: [PATCH] tweak: projectile: don't follow symlinks by default Experienced users (the type to use symlinks in their projects) can add -L back to `projectile-git-fd-args`, otherwise, its poorer UX for beginners if Projectile indexes symlinked build artifacts (like 'result' symlinks by Nix); i.e. things they didn't symlink themselves. Fix: #7781 --- lisp/doom-projects.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/doom-projects.el b/lisp/doom-projects.el index a9aa8edd6..3a7739833 100644 --- a/lisp/doom-projects.el +++ b/lisp/doom-projects.el @@ -183,7 +183,7 @@ And if it's a function, evaluate it." (put 'projectile-git-submodule-command 'initial-value projectile-git-submodule-command) (setq projectile-git-submodule-command nil ;; Include and follow symlinks in file listings. - projectile-git-fd-args (concat "-L -tl " projectile-git-fd-args) + projectile-git-fd-args (concat "-tl " projectile-git-fd-args) projectile-indexing-method 'hybrid projectile-generic-command (lambda (_)