From d7908a89fbeb18cff55515b7a1fa9841f0b967ce Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Sun, 10 Nov 2024 22:05:19 -0500 Subject: [PATCH] fix(emacs): add keymap for eglot Signed-off-by: Lucas Sta Maria --- .emacs.d/include/priime-lsp.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.emacs.d/include/priime-lsp.el b/.emacs.d/include/priime-lsp.el index 279db20..7255564 100644 --- a/.emacs.d/include/priime-lsp.el +++ b/.emacs.d/include/priime-lsp.el @@ -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)