Skip to content

swyddfa/esbonio.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

esbonio.el

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

Setup (eglot)

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)))

Setup (lsp-mode)

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'

Usage

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 file
  • esbonio-sync-scroll-mode: Global minor mode that synhronises the scroll state between Emacs and the documentation preview.

Releases

No releases published

Packages

No packages published