diff --git a/vim/after/plugin/ale.vim b/vim/after/plugin/ale.vim index 6db56ac..19dbeac 100644 --- a/vim/after/plugin/ale.vim +++ b/vim/after/plugin/ale.vim @@ -33,11 +33,14 @@ function! SetupAle() \ '*': ['remove_trailing_lines', 'trim_whitespace'], \ 'javascript': ['eslint'], \ 'python': ['autopep8', 'isort', 'trim_whitespace'], + \ 'rust': ['rustfmt', 'trim_whitespace'], \} let g:ale_c_parse_makefile = 1 let g:ale_c_gcc_parse_makefile = 1 + let g:ale_rust_cargo_use_clippy = executable('cargo-clippy') + let l:pylintrc_path = getcwd() . '/pylintrc' if filereadable(l:pylintrc_path) let g:ale_python_pylint_options = '--rcfile=' . l:pylintrc_path