@@ -120,9 +120,7 @@ is non-nil. Else format it as a variable."
120
120
(if-let ((method-name (if (and symbol (not (string= symbol " " )))
121
121
symbol
122
122
thing))
123
- (propertized-method-name (if (equal type 'function )
124
- (cider-propertize method-name 'fn )
125
- (cider-propertize method-name 'var )))
123
+ (propertized-method-name (cider-propertize method-name type))
126
124
(ns-or-class (if (and ns (stringp ns))
127
125
(funcall cider-eldoc-ns-function ns)
128
126
(cider--eldoc-format-class-names ns))))
@@ -214,7 +212,7 @@ arglists. ELDOC-INFO is a p-list containing the eldoc information."
214
212
(symbol (lax-plist-get eldoc-info " symbol" ))
215
213
(arglists (lax-plist-get eldoc-info " arglists" )))
216
214
(format " %s : %s "
217
- (cider-eldoc-format-thing ns symbol thing 'function )
215
+ (cider-eldoc-format-thing ns symbol thing 'fn )
218
216
(cider-eldoc-format-arglist arglists pos))))
219
217
220
218
(defun cider-highlight-args (arglist pos )
@@ -295,7 +293,7 @@ if the maximum number of sexps to skip is exceeded."
295
293
" Return the type of the thing being displayed by eldoc.
296
294
It can be a function or var now."
297
295
(pcase (lax-plist-get eldoc-info " type" )
298
- (" function" 'function )
296
+ (" function" 'fn )
299
297
(" variable" 'var )))
300
298
301
299
(defun cider-eldoc-info-at-point ()
@@ -417,7 +415,7 @@ Only useful for interop forms. Clojure forms would be returned unchanged."
417
415
(pos (lax-plist-get sexp-eldoc-info " pos" ))
418
416
(thing (lax-plist-get sexp-eldoc-info " thing" )))
419
417
(when eldoc-info
420
- (if (equal (cider-eldoc-thing-type eldoc-info) 'function )
418
+ (if (equal (cider-eldoc-thing-type eldoc-info) 'fn )
421
419
(cider-eldoc-format-function thing pos eldoc-info)
422
420
(cider-eldoc-format-variable thing pos eldoc-info))))))
423
421
0 commit comments