1
0
Fork 0

fix(emacs): improve eglot performance

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-12-15 01:39:10 -05:00
parent c0afc3ceeb
commit 816fd80010
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -4,12 +4,19 @@
;;; Code: ;;; Code:
(use-package eglot :straight t (use-package eglot :straight t
:custom
(eglot-events-buffer-config '(:size 0 :format full))
:custom-face (eglot-inlay-hint-face ((t (:height 1.0)))) :custom-face (eglot-inlay-hint-face ((t (:height 1.0))))
:hook ((racket-mode rust-mode irony-mode) . eglot-ensure) :hook ((racket-mode rust-mode irony-mode) . eglot-ensure)
:bind (:map eglot-mode-map :bind (:map eglot-mode-map
("C-c l r" . eglot-rename) ("C-c l r" . eglot-rename)
("C-c l a" . eglot-code-actions) ("C-c l a" . eglot-code-actions)
("C-c l f" . eglot-format))) ("C-c l f" . eglot-format))
:init (fset #'jsonrpc--log-event #'ignore))
(use-package eglot-booster
:straight (eglot-booster :type git :host github :repo "jdtsmith/eglot-booster")
:after (eglot)
:config (eglot-booster-mode))
(use-package eldoc :straight t (use-package eldoc :straight t
:after (eglot)) :after (eglot))
(use-package eldoc-box :straight t (use-package eldoc-box :straight t