rust-analyzer thing

This commit is contained in:
Sakooooo 2024-09-19 09:30:55 +04:00
parent d2e4292bb2
commit c1b4fe83d2
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -1023,21 +1023,16 @@ this should be useful later
#+end_src
** Rust
#+begin_src emacs-lisp
;; (use-package rust-mode
;; :hook (rust-mode . eglot-ensure)
;; :mode "\\.rs\\'")
;; (use-package cargo-mode
;; :hook
;; (rust-mode . cargo-minor-mode)
;; :config
;; (setq compilation-scroll-output t))
(use-package rustic
:ensure t
:config
(setq rustic-format-on-save nil)
(setq rustic-lsp-client 'eglot)
(add-to-list 'eglot-server-programs
'((rust-ts-mode rust-mode) .
("rust-analyzer" :initializationOptions (:diagnostics (:disabled "inactive-code")))))
:custom
(rustic-cargo-use-last-stored-arguments t))
#+end_src