mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-17 19:16:28 +00:00
Use clippy when linting rust files
This commit is contained in:
parent
9dd7947823
commit
f18eba7148
@ -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 <F4> :ALEFix<CR>
|
||||
|
Loading…
Reference in New Issue
Block a user