From 6a590da9cbb26a03e8fc1f650ce3b9f396711716 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Wed, 31 Mar 2021 21:27:20 +0200 Subject: [PATCH] Disable automatic document highlighting in eglot This causes lagging while highlighting symbols, and the highlighting itself does not add much value. Disabling it thus does not hurt and gets rid of the lagging. --- init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index c8bd104..43f63b7 100644 --- a/init.el +++ b/init.el @@ -1478,7 +1478,10 @@ (use-package eglot :ensure t - :commands (eglot-ensure)) + :commands (eglot-ensure) + ;; Highlighting takes a lot of time and does not add much value, so let's just + ;; disable it + :init (setq eglot-ignored-server-capabilites '(:documentHighlightProvider))) ;; * Mail