This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-10
Channels
- # beginners (6)
- # calva (1)
- # cider (17)
- # clj-kondo (10)
- # clojure (4)
- # clojure-austin (3)
- # clojure-spec (3)
- # clojurescript (40)
- # clojurex (17)
- # core-async (10)
- # cursive (1)
- # data-science (2)
- # datomic (15)
- # emacs (10)
- # fulcro (15)
- # funcool (1)
- # graalvm (15)
- # joker (3)
- # nrepl (34)
- # off-topic (10)
- # pedestal (3)
- # rewrite-clj (6)
- # spacemacs (5)
- # sql (11)
It is from VSCode and Calva @bozhidar
(defun cider--tooltip-show ()
(interactive)
(if-let ((info (cider-var-info (thing-at-point 'symbol))))
(nrepl-dbind-response info (doc arglists-str name ns)
(pos-tip-show (format "%s : %s\n%s\n%s" ns name arglists-str doc)
nil
nil
nil
-1))
(message "info not found")))
(bind-key "C-c t" 'cider--tooltip-show)
didn't realize this would be so easyThis is very nice and I am stealing it for my config, thanks!
it does. but that doesn't show the docstrings. this does a little popup with docstring inline
there's cider-doc but that creates a new window which is often a bit heavier than i want
Yeah, it’s very nice. Just got the impression that it was an answer to @neo2551’s question. 😃
I’m open to adding something like this, but we have to be careful for it not to affect the existing tooltips. (they are currently shown on mouse hover) I guess if this is enabled they should become disabled or something along those lines. A few people requested similar behaviour over the years, but it wasn’t high on my todo list and no one was willing to tackle it. This can also be useful for something like pretty-print at point.