2023-11-15 11:27:28 +01:00
|
|
|
(use-package cargo
|
2024-05-27 13:47:27 +02:00
|
|
|
:ensure t
|
2024-09-04 16:41:40 +02:00
|
|
|
:hook
|
2024-05-27 13:47:27 +02:00
|
|
|
;; enable cargo keybindings
|
2024-09-04 16:41:40 +02:00
|
|
|
(rust-mode . cargo-minor-mode))
|
2023-11-15 11:27:28 +01:00
|
|
|
|
|
|
|
(use-package rust-mode
|
2024-05-27 13:47:27 +02:00
|
|
|
:ensure t
|
|
|
|
:config
|
|
|
|
;; format code when saving
|
|
|
|
(setq rust-format-on-save t))
|
2023-11-15 11:27:28 +01:00
|
|
|
|
2024-09-12 10:43:19 +02:00
|
|
|
(use-package lsp-mode
|
|
|
|
:ensure t
|
|
|
|
:hook
|
|
|
|
(rust-mode . lsp-deferred)
|
|
|
|
(toml-mode . lsp-deferred))
|
|
|
|
|
2023-11-15 11:27:28 +01:00
|
|
|
(use-package flycheck-rust :ensure t)
|
2024-06-05 09:22:26 +02:00
|
|
|
(use-package toml-mode :ensure t)
|