Function: cider-annotate-symbol
cider-annotate-symbol is a byte-compiled function defined in
cider-completion.el.
Signature
(cider-annotate-symbol SYMBOL)
Documentation
Return a string suitable for annotating SYMBOL.
If SYMBOL has a text property `type` whose value is recognised, its
abbreviation according to cider-completion-annotations-alist will be
used. If `type` is present but not recognised, its value will be used
unaltered. If SYMBOL has a text property `ns`, then its value will be used
according to cider-completion-annotations-include-ns. The formatting is
performed by cider-annotate-completion-function.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-completion.el
(defun cider-annotate-symbol (symbol)
"Return a string suitable for annotating SYMBOL.
If SYMBOL has a text property `type` whose value is recognised, its
abbreviation according to `cider-completion-annotations-alist' will be
used. If `type` is present but not recognised, its value will be used
unaltered. If SYMBOL has a text property `ns`, then its value will be used
according to `cider-completion-annotations-include-ns'. The formatting is
performed by `cider-annotate-completion-function'."
(when cider-annotate-completion-candidates
(let* ((type (cider-completion--get-candidate-type symbol))
(ns (cider-completion--get-candidate-ns symbol)))
(funcall cider-annotate-completion-function type ns))))