lsp-mode: Move rust-mode config for lsp-mode to rust config

To decouple rust from the dev config and contain it solely in the rust
config, configure the lsp-mode for rust in the rust config.
This commit is contained in:
finga 2024-09-12 10:43:19 +02:00
parent d188dd4c89
commit ce1a062606
2 changed files with 6 additions and 3 deletions

View file

@ -48,9 +48,6 @@
(use-package lsp-mode (use-package lsp-mode
:ensure t :ensure t
:hook
(rust-mode . lsp-deferred)
(toml-mode . lsp-deferred)
:config :config
(lsp-inlay-hints-mode) (lsp-inlay-hints-mode)
(setq lsp-inlay-hint-enable t)) (setq lsp-inlay-hint-enable t))

View file

@ -10,5 +10,11 @@
;; format code when saving ;; format code when saving
(setq rust-format-on-save t)) (setq rust-format-on-save t))
(use-package lsp-mode
:ensure t
:hook
(rust-mode . lsp-deferred)
(toml-mode . lsp-deferred))
(use-package flycheck-rust :ensure t) (use-package flycheck-rust :ensure t)
(use-package toml-mode :ensure t) (use-package toml-mode :ensure t)