Variable: eglot-booster-mode
eglot-booster-mode is a customizable variable defined in
eglot-booster.el.
Value
nil
Documentation
Non-nil if Eglot-Booster mode is enabled.
See the eglot-booster-mode(var)/eglot-booster-mode(fun) command
for a description of this minor mode.
Setting this variable directly does not take effect;
either customize it (see the info node (emacs)Easy Customization)
or call the function eglot-booster-mode(var)/eglot-booster-mode(fun).
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/qd8jjgh8k2c0q3lbcy0sw59mn9h6khis-emacs-packages-deps/share/emacs/site-lisp/eglot-booster.el
;;;###autoload
(define-minor-mode eglot-booster-mode
"Minor mode which boosts plain eglot server programs with emacs-lsp-booster.
The emacs-lsp-booster program must be compiled and available on
variable `exec-path'. Only local stdin/out-based lsp servers can
be boosted."
:global t
:group 'eglot
(cond
(eglot-booster-mode
(unless (executable-find "emacs-lsp-booster")
(setq eglot-booster-mode nil)
(user-error "The emacs-lsp-booster program is not installed"))
(unless eglot-booster-io-only
(advice-add 'jsonrpc--json-read :around #'eglot-booster--jsonrpc--json-read))
(advice-add 'eglot--connect :filter-args #'eglot-booster--wrap-contact)
(add-hook 'eglot-server-initialized-hook #'eglot-booster--init))
(t
(advice-remove 'jsonrpc--json-read #'eglot-booster--jsonrpc--json-read)
(advice-remove 'eglot--connect #'eglot-booster--wrap-contact)
(remove-hook 'eglot-server-initialized-hook #'eglot-booster--init))))