rust-analyzer thing
This commit is contained in:
parent
d2e4292bb2
commit
c1b4fe83d2
|
@ -1023,21 +1023,16 @@ this should be useful later
|
||||||
#+end_src
|
#+end_src
|
||||||
** Rust
|
** Rust
|
||||||
#+begin_src emacs-lisp
|
#+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
|
(use-package rustic
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(setq rustic-format-on-save nil)
|
(setq rustic-format-on-save nil)
|
||||||
(setq rustic-lsp-client 'eglot)
|
(setq rustic-lsp-client 'eglot)
|
||||||
|
|
||||||
|
(add-to-list 'eglot-server-programs
|
||||||
|
'((rust-ts-mode rust-mode) .
|
||||||
|
("rust-analyzer" :initializationOptions (:diagnostics (:disabled "inactive-code")))))
|
||||||
|
|
||||||
:custom
|
:custom
|
||||||
(rustic-cargo-use-last-stored-arguments t))
|
(rustic-cargo-use-last-stored-arguments t))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
Loading…
Reference in a new issue