This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-08
Channels
- # adventofcode (49)
- # babashka (21)
- # babashka-sci-dev (12)
- # beginners (250)
- # calva (23)
- # cider (6)
- # clj-kondo (11)
- # cljsrn (8)
- # clojure (129)
- # clojure-europe (50)
- # clojure-france (8)
- # clojure-italy (6)
- # clojure-nl (14)
- # clojure-romania (7)
- # clojure-spec (21)
- # clojure-uk (3)
- # clojurescript (17)
- # conjure (1)
- # core-async (40)
- # core-logic (24)
- # core-typed (7)
- # datavis (2)
- # datomic (2)
- # emacs (29)
- # fulcro (10)
- # graalvm (6)
- # graphql (24)
- # gratitude (6)
- # jobs (1)
- # lsp (9)
- # malli (6)
- # missionary (1)
- # nextjournal (46)
- # off-topic (2)
- # other-languages (3)
- # pathom (5)
- # portal (2)
- # re-frame (37)
- # remote-jobs (1)
- # shadow-cljs (15)
- # spacemacs (9)
- # testing (6)
- # tools-deps (13)
- # vim (32)
- # xtdb (16)
so this really awsesome tooltip will show up about a fn or var, but only if you chill there for like 3 seconds. I don't really have a productive comment here, just that if we could get that down people would love it.
like i type [clojure.spec.alpha*] where "*'" is the cursor and then magically this how doc shows up about the namespace and im like yea. but it takes so long i probably wont see it before moving on.
i guess if idont know what i need i can afford to wait around lol
Sounds like the Emacs lsp-ui doc popup, which can be configured with these LSP layer variables in Spacemacs
I believe its the lsp-ui-doc-delay
value to tweak to your requirements (the doc popup really annoys me, so I have a long delay - because at some point I couldnt disable the popup)
lsp-ui-doc-enable nil ;; disable all doc popups
lsp-ui-doc-show-with-cursor nil ;; doc popup for cursor
lsp-ui-doc-show-with-mouse nil ;; doc popup for mouse
lsp-ui-doc-delay 99999 ;; delay in seconds for popup to display
lsp-ui-doc-include-signature t ;; include function signature
;; lsp-ui-doc-position 'at-point ;; top bottom at-point
;; lsp-ui-doc-alignment 'window ;; frame window
BTW, the lsp-ui-doc-show-with-cursor
was changed to be nil
by default this week along with the lsp-ui-sideline-show-code-actions
, reducing noise on emacs-lsp :)
https://github.com/emacs-lsp/lsp-ui/pull/668
@ericdallo Is it possible to have the lsp-ui-doc popup on a key binding, rather than being automatic? What would be the interactive function to call for that (if possible). I do like the popup presentation, but only want to see it when I explicitly call for it.
If its not possible to have a key binding for lsp-doc-ui or not likely to be added, I can continue using the lsp-describe-thing-at-point instead
Ah, I need to enable the lsp-doc-ui for that to work, that was my confusion. So I can get a manual only lsp-ui-doc window by creating a key binding for lsp-ui-doc
-show and lsp-ui-doc-hide
and switch off the automatic popups. Thanks
lsp-ui-doc-enable t ;; lsp ui doc popup enabled
lsp-ui-doc-show-with-cursor nil ;; doc popup for cursor
lsp-ui-doc-show-with-mouse nil ;; doc popup for mouse