mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-03-15 11:10:29 -07:00
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:
parent
0bbece56f1
commit
73693a8a2d
1 changed files with 1 additions and 2 deletions
|
|
@ -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)))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue