Emacs package for integrating the esbonio language server into Emacs, providing the necessary glue code for both eglot
and lsp-mode
It also exposes the functionality provided by the language server that falls outside the LSP specification including live previews and syncronised scrolling
Requires Emacs 30.1
Install the esbonio language server if you haven't already
pipx install --pre esbonio
Add the following configuration to your init.el
(use-package esbonio
:vc (esbonio :url "https://github.com/swyddfa/esbonio.el" :rev "main")
:hook ((rst-mode . esbonio-eglot-ensure)))
Install the esbonio language server if you haven't already
pipx install --pre esbonio
Add the following configuration to your init.el
(use-package esbonio
:vc (esbonio :url "https://github.com/swyddfa/esbonio.el" :rev "main")
:hook ((rst-mode . esbonio-lsp-deferred))) ;; or `esbonio-lsp'
See the upstream project's documentation on using esbonio itself.
In addition to registering esbonio with the various lsp client packages, this package provides the following
esbonio-preview-file
: Function to open a preview for the current fileesbonio-sync-scroll-mode
: Global minor mode that synhronises the scroll state between Emacs and the documentation preview.