From fb646c8b747943c34e90df9ec4376725637ece27 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 9 Oct 2019 17:18:49 +0200 Subject: [PATCH] [ADD][VIM] Rust options for ALE --- vim/.vimrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index 680faa2..28354c5 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -313,6 +313,16 @@ let g:ale_cpp_clang_options='-Wall -Wextra -pedantic -std=c++17' let g:ale_c_gcc_options='-Wall -Wextra -pedantic -std=c99' let g:ale_cpp_gcc_options='-Wall -Wextra -pedantic -std=c++17' " }}} + +" Rust settings {{{ +"""""""""""""""" +" Check tests too +let g:ale_rust_cargo_check_tests=1 +" Check examples too +let g:ale_rust_cargo_check_examples=1 +" Use clippy if it's available instead of just cargo check +let g:ale_rust_cargo_use_clippy=executable('cargo-clippy') +" }}} " }}} " }}}