File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -120,14 +120,11 @@ opposite of what that option dictates."
120
120
(insert " Not available\n " ))
121
121
(buffer-string )))
122
122
123
- (defun cider-clojuredocs-lookup (symbol )
124
- " Look up the ClojureDocs documentation for SYMBOL.
125
-
126
- If SYMBOL is a special form, the clojure.core ns is used, as is
127
- ClojureDocs's convention."
128
- (if-let* ((var-info (cider-var-info symbol)))
123
+ (defun cider-clojuredocs-lookup (sym )
124
+ " Look up the ClojureDocs documentation for SYM."
125
+ (if-let* ((var-info (cider-var-info sym)))
129
126
(let* ((name (nrepl-dict-get var-info " name" ))
130
- (ns (nrepl-dict-get var-info " ns" " clojure.core " ))
127
+ (ns (nrepl-dict-get var-info " ns" (cider-current-ns) ))
131
128
(docs (cider-sync-request:clojuredocs-lookup ns name)))
132
129
(pop-to-buffer (cider-create-clojuredocs-buffer (cider-clojuredocs--content docs))))
133
130
(error " Symbol %s not resolved " symbol)))
You can’t perform that action at this time.
0 commit comments