1
0
Fork 0
dotfiles/.emacs.d/include/priime-lsp.el
Lucas Sta Maria 8e32035d07
fix(emacs): use eldoc-box-hover-mode
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
2024-11-10 22:40:34 -05:00

27 lines
804 B
EmacsLisp

;;; priime-lsp.el --- LSP configuration
;;; Commentary:
;; 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"))))))
(use-package eldoc :straight t
:after (eglot))
(use-package eldoc-box :straight t
:after (eldoc)
:hook (eldoc-mode . eldoc-box-hover-mode))
(provide 'priime-lsp)
;;; priime-lsp.el ends here