Function: projectile--marginalia-setup

projectile--marginalia-setup is a byte-compiled function defined in projectile.el.

Signature

(projectile--marginalia-setup)

Documentation

Teach Marginalia how to annotate projectile-project candidates.

They are directory paths, so the built-in file annotator fits and the candidates look exactly like they did under the file category. The registry is marginalia-annotators these days and was marginalia-annotator-registry in older releases, so register with whichever one the installed Marginalia has.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--marginalia-setup ()
  "Teach Marginalia how to annotate `projectile-project' candidates.
They are directory paths, so the built-in file annotator fits and the
candidates look exactly like they did under the `file' category.  The
registry is `marginalia-annotators' these days and was
`marginalia-annotator-registry' in older releases, so register with
whichever one the installed Marginalia has."
  (dolist (registry '(marginalia-annotators marginalia-annotator-registry))
    (when (boundp registry)
      (add-to-list registry
                   '(projectile-project marginalia-annotate-file builtin none)))))