casouri / eldoc-box

childframe doc for eglot and anything that uses eldoc
361 stars 26 forks source link

Using Only Help at Point #83

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hello, I'm new in Emacs. Thank you for your package, you made it very similar to lsp-ui which I liked. I wonder is it possible to only use help at point? I want to bind the help-at-point and not have popups automatically. Is there any way to set bindings at all?

casouri commented 1 year ago

Yeah, just bind eldoc-box-help-at-point. Something like

(define-key (kbd "C-c C-h") #'eldoc-box-help-at-point)
ghost commented 1 year ago

Do I still need to set the minor mode?

casouri commented 1 year ago

You don't need to turn on the minor mode.

ghost commented 1 year ago

Oh cool! If I didn't set that, would the bottom echo area still be populated by eldoc? I am not sure about disabling hoverProvider. Before using your package, I tried once settinf the ignore-server-capabilities to hoverProvider. I was not able to get any documentation at all

casouri commented 1 year ago

The echo area should be empty as long as the popup is visible. I think you need to enable hoverProvider for eldoc-box to work. If you don't want to show help in the echo area, you can try removing eldoc-display-in-echo-area from eldoc-display-functions.

ghost commented 1 year ago

Thank you for the pointer!