fix(emacs): adjust eglot keymap setting
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
653478d3dc
commit
4102d957f5
1 changed files with 4 additions and 10 deletions
|
@ -3,19 +3,13 @@
|
|||
;; 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)
|
||||
("rust-analyzer" :initializationOptions (:checkOnSave (:command "clippy"))))))
|
||||
:bind (:map eglot-mode-map
|
||||
("C-c l r" . eglot-rename)
|
||||
("C-c l a" . eglot-code-actions)
|
||||
("C-c l f" . eglot-format)))
|
||||
(use-package eldoc :straight t
|
||||
:after (eglot))
|
||||
(use-package eldoc-box :straight t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue