瀏覽代碼

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.
master
Daniel 2 月之前
父節點
當前提交
6a590da9cb
沒有發現已知的金鑰在資料庫的簽署中
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      init.el

+ 4
- 1
init.el 查看文件

@@ -1478,7 +1478,10 @@
1478 1478
 
1479 1479
 (use-package eglot
1480 1480
   :ensure t
1481
-  :commands (eglot-ensure))
1481
+  :commands (eglot-ensure)
1482
+  ;; Highlighting takes a lot of time and does not add much value, so let's just
1483
+  ;; disable it
1484
+  :init (setq eglot-ignored-server-capabilites '(:documentHighlightProvider)))
1482 1485
 
1483 1486
 
1484 1487
 ;; * Mail

Loading…
取消
儲存