1
0
Fork 0

fix(emacs): add keymap for eglot

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-11-10 22:05:19 -05:00
parent dcb51dd485
commit d7908a89fb
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -3,9 +3,15 @@
;; Provides configuration for LSP-related packages.
;;; Code:
(defvar-keymap priime-eglot-keymap
"r" #'eglot-rename
"a" #'eglot-code-actions
"f" #'eglot-format)
(use-package eglot :straight t
:custom-face (eglot-inlay-hint-face ((t (:height 1.0))))
:hook ((racket-mode rust-mode irony-mode) . eglot-ensure)
:bind-keymap ("C-c l" . priime-eglot-keymap)
:init
(add-to-list 'eglot-server-programs
'((rust-mode rust-ts-mode)