.emacs.d/lang/rust.el

16 lines
485 B
EmacsLisp

;; Rust
;; https://github.com/emacs-rustic/rustic
(use-package rustic
:ensure t
:custom
(rustic-cargo-use-last-stored-arguments t)
:bind
(:map rustic-mode-map
("M-?" . lsp-find-references)
("C-c C-c l" . flycheck-list-errors)
("C-c C-c a" . lsp-execute-code-action)
("C-c C-c r" . lsp-rename)
("C-c C-c q" . lsp-workspace-restart)
("C-c C-c Q" . lsp-workspace-shutdown)
("C-c C-c s" . lsp-rust-analyzer-status)))