diff --git a/README.org b/README.org index f423e443..48843f5a 100644 --- a/README.org +++ b/README.org @@ -2956,11 +2956,13 @@ I'd like to start learning and using rust if I can. :config ;; comment to disable rustfmt on save (setq rustic-format-on-save t - rustic-lsp-client 'eglot) + rustic-lsp-client 'eglot + rustic-clippy-arguments "-- -W clippy::pedantic") :general (general-def 'normal rustic-mode-map "!" 'rustic-run-shell-command "gC" 'rustic-cargo-check + "gC" 'rustic-cargo-clippy "gA" 'rustic-cargo-add) (chris/leader-keys :states 'normal diff --git a/init.el b/init.el index 1be5df76..37f0a93d 100644 --- a/init.el +++ b/init.el @@ -2216,11 +2216,13 @@ targets." :config ;; comment to disable rustfmt on save (setq rustic-format-on-save t - rustic-lsp-client 'eglot) + rustic-lsp-client 'eglot + rustic-clippy-arguments "-- -W clippy::pedantic") :general (general-def 'normal rustic-mode-map "!" 'rustic-run-shell-command "gC" 'rustic-cargo-check + "gC" 'rustic-cargo-clippy "gA" 'rustic-cargo-add) (chris/leader-keys :states 'normal