@@ -714,30 +714,9 @@ the children of class at point."
714
714
do (push (cons (1+ depth) child) tree)))))))
715
715
(eglot--error " Hierarchy unavailable" )))
716
716
717
- ; ; Inspired by Doom Emacs
718
- (defvar +eglot--default-read-process-output-max nil )
719
- (defvar +eglot--default-gcmh-high-cons-threshold nil )
720
- (defvar +eglot--optimization-active-p nil )
721
-
722
- ;;;### autoload
723
- (define-minor-mode +eglot-optimization-mode
724
- " Deploys universal GC and IPC optimizations for `eglot' ."
725
- :global t
726
- :init-value nil
727
- (if (not +eglot-optimization-mode)
728
- (setq-default read-process-output-max +eglot--default-read-process-output-max
729
- gcmh-high-cons-threshold +eglot--default-gcmh-high-cons-threshold
730
- +eglot--optimization-active-p nil )
731
- ; ; Only apply these settings once!
732
- (unless +eglot--optimization-active-p
733
- (setq +eglot--default-read-process-output-max (default-value 'read-process-output-max )
734
- +eglot--default-gcmh-high-cons-threshold (default-value 'gcmh-high-cons-threshold ))
735
- (setq-default read-process-output-max (* 1024 1024 )
736
- gcmh-high-cons-threshold (* 2 +eglot--default-gcmh-high-cons-threshold))
737
- (gcmh-set-high-threshold)
738
- (setq +eglot--optimization-active-p t ))))
739
-
740
- ; ; From: https://github.com/doomemacs/doomemacs/blob/master/modules/tools/lsp/autoload/eglot.el
717
+ ; ; Adapted from: Doom Emacs
718
+ ; ; github.com/doomemacs/doomemacs/blob/master/modules/tools/lsp/autoload/eglot.el
719
+ ; ;
741
720
; ; HACK: Eglot removed `eglot-help-at-point' in joaotavora/eglot@a044dec for a
742
721
; ; more problematic approach of deferred to eldoc. Here, I've restored it.
743
722
; ; This handler try to open documentation in a separate window (so it can be
0 commit comments