spacemacs

practicalli-johnny 2021-12-08T13:23:01.159800Z

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

ericdallo 2021-12-08T13:41:20.160700Z

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

1
practicalli-johnny 2021-12-08T14:05:52.164100Z

@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.

👍 1
practicalli-johnny 2021-12-08T14:09:01.165200Z

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

ericdallo 2021-12-08T14:19:59.165700Z

AFAIK is lsp-ui-doc-show the command that you can add a keybinding for it

practicalli-johnny 2021-12-08T14:30:59.168900Z

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

1
Drew Verlee 2021-12-08T04:28:56.155100Z

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.

Drew Verlee 2021-12-08T04:30:09.156600Z

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.

Drew Verlee 2021-12-08T04:30:20.156900Z

i guess if idont know what i need i can afford to wait around lol