From 4102d957f53d6cefa5362bcc36e3910dd9741130 Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Tue, 12 Nov 2024 23:22:32 -0500 Subject: [PATCH] fix(emacs): adjust eglot keymap setting Signed-off-by: Lucas Sta Maria --- .emacs.d/include/priime-lsp.el | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.emacs.d/include/priime-lsp.el b/.emacs.d/include/priime-lsp.el index dae6a1e..6536519 100644 --- a/.emacs.d/include/priime-lsp.el +++ b/.emacs.d/include/priime-lsp.el @@ -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