From 0062c03ede1f9cd7b8c84d9e4b1489b37c4415b2 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 8 Oct 2020 23:43:12 -0400 Subject: [PATCH] tools/lsp: apply after changing gcmh-high-cons-threshold --- modules/tools/lsp/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/tools/lsp/config.el b/modules/tools/lsp/config.el index 0750b39b2..d2df9922c 100644 --- a/modules/tools/lsp/config.el +++ b/modules/tools/lsp/config.el @@ -24,7 +24,8 @@ killing and opening many LSP/eglot-powered buffers.") ;; GC-induced slowdowns/freezes. Doom uses `gcmh' to enforce its GC ;; strategy, so we modify its variables rather than ;; `gc-cons-threshold' directly. - (setq-local gcmh-high-cons-threshold (* 2 (default-value 'gcmh-high-cons-threshold))))) + (setq-local gcmh-high-cons-threshold (* 2 (default-value 'gcmh-high-cons-threshold))) + (gcmh-set-high-threshold))) ;;