From 73693a8a2d675bc121f09b476df70e89eaf902bd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 11 Mar 2026 17:47:03 -0400 Subject: [PATCH] perf(vertico): reduce project-root calls by one If operating on files that aren't in a project, marginalia suffers two potentially expensive `projectile-project-root` calls per file/directory. This reduces it to one. --- modules/completion/vertico/config.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/completion/vertico/config.el b/modules/completion/vertico/config.el index 07a586e9d..5ea3242b9 100644 --- a/modules/completion/vertico/config.el +++ b/modules/completion/vertico/config.el @@ -341,8 +341,7 @@ orderless." "\\`\\(?:Dired\\|Find file\\) in \\(.*\\): \\'" prompt) (match-string 1 prompt))) - (and (doom-project-p) - (doom-project-root))))) + (doom-project-root)))) marginalia--project-root)))