This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
Hi, is there any way how to completely disable cider on-hover documentation? When i am runing eglot and cider, i still get cider documentation in echo area.
If so - see the docs here https://docs.cider.mx/cider/config/eldoc.html
The eldoc for the symbol at point can be disabled, but for the rest you'll need to stop eldoc completely or remove CIDER's hook from ElDoc:
(remove-hook 'eldoc-documentation-functions #'cider-eldoc)
Thank you, I’ve tried this as well but I am still getting it. https://www.loom.com/share/da8dbe7359fd47beb0cb4d8df0db2350 Edit: sorry for the kids in the background 😄
I'm guessing this is the ElDoc format that eglot or clojure-lsp are using, but CIDER's ElDoc messages look differently.
Might be best to just check what exactly do you have in eldoc-documentation-functions
.
If so try setting cider-use-tooltips
to nil, but this showed the help in an overlay.
But if you're using some heavily customized Emacs distro god knows what settings were changed there. 😄
By default this shouldn't go to the minibuffer IMO, as this was somehow tied with help-echo
.
If I ever find the time, I’ll try to replicate it, find out where the problem is. Thanks again for your help.
I got it, i had disabled tooltip-mode and so every tooltip was displayed in echo area (which I learnt just now ;-))
And because I like CIDER’s ElDoc messages quite a lot I am using this hook on cider-mode.
(defun my/remove-eglot-eldoc-from-cider-buffers ()
(remove-hook 'eldoc-documentation-functions #'eglot-hover-eldoc-function)
(remove-hook 'eldoc-documentation-functions #'eglot-signature-eldoc-function))
(I suppose that having fewer fns in eldoc-documentation-functions might help a performance little bit? Otherwise, it is not needed)