Skip to content

Commit

Permalink
[vim] configure rust linter / fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelRobitaille committed Feb 5, 2021
1 parent 8ba469a commit d5a913a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vim/after/plugin/ale.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5a913a

Please sign in to comment.