all repos — nixfiles @ d0deb1037ba46553a02a6d7d84b6abb5d4b6bbd8

System and user configuration, managed by nix and home-manager

Create initial rust development setup

Alan Pearce
commit

d0deb1037ba46553a02a6d7d84b6abb5d4b6bbd8

parent

fcee2cdf9c5e904eed5724028ad6531a105e6406

1 file changed, 10 insertions(+), 1 deletion(-)

changed files
M user/emacs/init.eluser/emacs/init.el
@@ -719,6 +719,14 @@ (if (not (string-match-p "go" compile-command))
(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 @@ :config (progn
(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