Function: nerd-icons-completion-mode

nerd-icons-completion-mode is an interactive and natively compiled function defined in nerd-icons-completion.el.

Signature

(nerd-icons-completion-mode &optional ARG)

Documentation

Add icons to completion candidates.

This is a global minor mode. If called interactively, toggle the Nerd-Icons-Completion mode mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is toggle. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer, evaluate (default-value \=nerd-icons-completion-mode)'.

The mode's hook is called both when the mode is enabled and when it is disabled.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/wdh09xjk56z9i79asn7662ksbj6xycf3-emacs-packages-deps/share/emacs/site-lisp/elpa/nerd-icons-completion-20260921.2012/nerd-icons-completion.el
;;;###autoload
(define-minor-mode nerd-icons-completion-mode
  "Add icons to completion candidates."
  :global t
  (if nerd-icons-completion-mode
      (progn
        (advice-add #'completion-metadata-get :around #'nerd-icons-completion-completion-metadata-get)
        (advice-add (compat-function completion-metadata-get) :around #'nerd-icons-completion-completion-metadata-get))
    (progn
      (advice-remove #'completion-metadata-get #'nerd-icons-completion-completion-metadata-get)
      (advice-remove (compat-function completion-metadata-get) #'nerd-icons-completion-completion-metadata-get))))