Use clippy when linting rust files

This commit is contained in:
ViViDboarder 2021-06-13 18:31:30 -07:00
parent 9dd7947823
commit f18eba7148

View File

@ -33,6 +33,11 @@ let g:ale_fixers = {
let g:ale_python_flake8_options = '--max-line-length 88' let g:ale_python_flake8_options = '--max-line-length 88'
let g:ale_go_golangci_lint_options = '' let g:ale_go_golangci_lint_options = ''
let g:ale_go_golangci_lint_package = 1 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 " Create shortcut for ALEFix
nnoremap <F4> :ALEFix<CR> nnoremap <F4> :ALEFix<CR>