Function: magit-format-file-nerd-icons

magit-format-file-nerd-icons is a byte-compiled function defined in magit-diff.el.

Signature

(magit-format-file-nerd-icons KIND FILE FACE &optional STATUS ORIG)

Documentation

Show the status, filename and icon (using the nerd-icons package).

You have to explicitly install the nerd-icons package, else this function errors.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
(defun magit-format-file-nerd-icons (kind file face &optional status orig)
  "Show the status, filename and icon (using the `nerd-icons' package).
You have to explicitly install the `nerd-icons' package, else this
function errors."
  (magit--get-file-icon kind file face status orig
                        'nerd-icons-icon-for-file
                        'nerd-icons-icon-for-dir
                        'nerd-icons-dir-is-submodule))