diff options
Diffstat (limited to '')
-rw-r--r-- | emacs/custom/my-lang-rust.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/emacs/custom/my-lang-rust.el b/emacs/custom/my-lang-rust.el index eb8e9a5..e6374a7 100644 --- a/emacs/custom/my-lang-rust.el +++ b/emacs/custom/my-lang-rust.el @@ -8,11 +8,16 @@ (require 'rustic) (require 'lsp-rust) -(setq rustic-lsp-server 'rust-analyzer) -(setq rustic-lsp-client 'lsp-mode) +(setq lsp-rust-analyzer-cargo-watch-enable t) +(setq lsp-rust-analyzer-proc-macro-enable t) +(setq lsp-rust-full-docs t) +(setq lsp-rust-server 'rust-analyzer) + (setq rustic-format-on-save t) +(setq rustic-lsp-client 'lsp-mode) +(setq rustic-lsp-server 'rust-analyzer) -(add-hook 'rustic-mode-hook #'lsp-rust-analyzer-inlay-hints-mode) +(add-hook 'rusti-mode-hook #'lsp-deferred) (provide 'my-lang-rust) |