casouri / eldoc-box

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

+TITLE: ElDoc box

This package displays ElDoc documentations in a childframe. The childframe is selectable and scrollable with mouse, even though the cursor is hidden.

[[https://melpa.org/#/eldoc-box][file:https://melpa.org/packages/eldoc-box-badge.svg]] [[https://stable.melpa.org/#/eldoc-box][file:https://stable.melpa.org/packages/eldoc-box-badge.svg]]

+CAPTION: Using with eglot in python-mode

[[./screenshot.png]]

It is also available on [[https://melpa.org/#/eldoc-box][MELPA]].

** Function

** Face

** Hooks

** Variable

** Use with eglot

+BEGIN_SRC emacs-lisp

(add-hook 'eglot-managed-mode-hook #'eldoc-box-hover-mode t)

+END_SRC

To keep eldoc from displaying documentation at point without enabling any minor mode above: =(add-to-list 'eglot-ignored-server-capabilites :hoverProvider)=.

** Default prettifier

By default, eldoc-box tries to prettify the displayed markdown documentation as shown below. If you wish to disable them, remove the prettifier functions from =eldoc-box-buffer-hook=. Report an issue if there are other things can be prettfied away.

[[./demo.png]]