Skip to content

Commit ff128c1

Browse files
committed
tweak(lib-extra): remove unneeded +eglot-optimization-mode
1 parent 44f9828 commit ff128c1

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

core/me-lib-extra.el

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -714,30 +714,9 @@ the children of class at point."
714714
do (push (cons (1+ depth) child) tree)))))))
715715
(eglot--error "Hierarchy unavailable")))
716716

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+
;;
741720
;; HACK: Eglot removed `eglot-help-at-point' in joaotavora/eglot@a044dec for a
742721
;; more problematic approach of deferred to eldoc. Here, I've restored it.
743722
;; This handler try to open documentation in a separate window (so it can be

0 commit comments

Comments
 (0)