diff options
Diffstat (limited to 'user/emacs')
-rw-r--r-- | user/emacs/init.el | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index 0178b3cf..5d5cded7 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -719,6 +719,14 @@ _p_rev _u_pper _=_: upper/lower _r_esolve (set (make-local-variable 'compile-command) "go build -v && go test && go vet")))))) +;;;; rust +(use-package rustic + :config (progn + (setq rustic-format-on-save t + lsp-rust-analyzer-display-inlay-hints t + lsp-rust-analyzer-cargo-watch-command "clippy") + (add-to-list 'flycheck-checkers 'rustic-clippy))) + ;;;; js (setq js-indent-level 2 js-enabled-frameworks '(javascript)) @@ -925,7 +933,8 @@ _p_rev _u_pper _=_: upper/lower _r_esolve (setq lsp-auto-guess-root t lsp-auto-configure nil lsp-idle-delay 0.5 - lsp-enable-symbol-highlighting nil) + lsp-enable-symbol-highlighting nil + lsp-eldoc-render-all t) (add-to-list 'lsp-language-id-configuration '(js-mode . "javascript")))) (use-package lsp-javascript |