fix(lsp): void-variable eglot-events-buffer-config
The variable was modified too early (before the package was loaded).
Amend: 5f858bb142
This commit is contained in:
parent
193475cd64
commit
5280fb2855
1 changed files with 7 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue