From f18eba7148813820860f79a0acc5fc6b47e1d467 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Sun, 13 Jun 2021 18:31:30 -0700 Subject: [PATCH] Use clippy when linting rust files --- vim/rc/plugins/ale.rc.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vim/rc/plugins/ale.rc.vim b/vim/rc/plugins/ale.rc.vim index 3ec604c..3464382 100644 --- a/vim/rc/plugins/ale.rc.vim +++ b/vim/rc/plugins/ale.rc.vim @@ -33,6 +33,11 @@ let g:ale_fixers = { let g:ale_python_flake8_options = '--max-line-length 88' let g:ale_go_golangci_lint_options = '' let g:ale_go_golangci_lint_package = 1 - +let g:ale_rust_cargo_use_clippy = 1 +let g:ale_rust_rls_config = { + \ 'rust': { + \ 'clippy_preference': 'on' + \ } + \ } " Create shortcut for ALEFix nnoremap :ALEFix