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.
This commit is contained in:
Henrik Lissner 2026-03-11 17:47:03 -04:00
parent 0bbece56f1
commit 73693a8a2d
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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)))