fix(lsp): void-variable eglot-events-buffer-config

The variable was modified too early (before the package was loaded).

Amend: 5f858bb142cc
This commit is contained in:
Henrik Lissner 2024-03-13 06:51:35 -04:00 committed by Yann Esposito (Yogsototh)
parent b6e48e2046
commit 838abb787e
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -19,12 +19,6 @@
;; NOTE: We disable eglot-auto-display-help-buffer because :select t in
;; its popup rule causes eglot to steal focus too often.
eglot-auto-display-help-buffer nil)
;; NOTE: This setting disable the eglot-events-buffer enabling more consistent
;; performance on long running emacs instance. Default is 2000000 lines.
;; After each new event the whole buffer is pretty printed which causes
;; steady performance decrease over time. CPU is spent on pretty priting and
;; Emacs GC is put under high pressure.
(cl-callf plist-put eglot-events-buffer-config :size 0)
(when (and (modulep! :checkers syntax)
(not (modulep! :checkers syntax +flymake)))
(setq eglot-stay-out-of '(flymake)))
@ -38,6 +32,13 @@
:type-definition #'eglot-find-typeDefinition
:documentation #'+eglot-lookup-documentation)
;; NOTE: This setting disable the eglot-events-buffer enabling more consistent
;; performance on long running emacs instance. Default is 2000000 lines.
;; After each new event the whole buffer is pretty printed which causes
;; steady performance decrease over time. CPU is spent on pretty priting and
;; Emacs GC is put under high pressure.
(cl-callf plist-put eglot-events-buffer-config :size 0)
(add-to-list 'doom-debug-variables '(eglot-events-buffer-config :size 2000000 :format full))
(defadvice! +lsp--defer-server-shutdown-a (fn &optional server)