Compare commits

...

3 commits

Author SHA1 Message Date
ce1a062606 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.
2024-09-12 10:44:27 +02:00
d188dd4c89 lsp-mode: Move python-mode config for lsp-mode to python config
To decouple python from the dev config and contain it solely in the
python config, configure the lsp-mode for python in the python config.
2024-09-12 10:44:21 +02:00
0d5d721da9 lsp-mode: Add inline hints
Add config to show some inline hints.
2024-09-12 10:36:33 +02:00
3 changed files with 14 additions and 4 deletions

View file

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

View file

@ -5,3 +5,8 @@
:ensure t :ensure t
:hook :hook
(python-mode . flycheck-mode)) (python-mode . flycheck-mode))
(use-package lsp-mode
:ensure t
:hook
(python-mode . lsp-deferred))

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)