mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-27 14:23:43 -05:00
fix(lsp): eglot-booster-io-only only when needed
On older Emacsen, we want all the help eglot-booster can give.
Ref: #8463
Amend: 1ede94c88a
This commit is contained in:
@@ -59,7 +59,11 @@ server an expensive restart when its buffer is reverted."
|
||||
:when (modulep! +booster)
|
||||
:after eglot
|
||||
:init
|
||||
(setq eglot-booster-io-only t)
|
||||
(setq eglot-booster-io-only
|
||||
;; JSON parser on 30+ is faster, so we only exploit eglot-booster's IO
|
||||
;; buffering (benefits more talkative LSP servers).
|
||||
(and (> emacs-major-version 29)
|
||||
(not (functionp 'json-rpc-connection))))
|
||||
:config
|
||||
(eglot-booster-mode +1))
|
||||
|
||||
|
Reference in New Issue
Block a user