Update vimrc: rust

This commit is contained in:
Théophile Bastian 2023-02-10 09:53:00 +01:00
parent 7042e8d100
commit 05e0afb578
2 changed files with 9 additions and 0 deletions

2
files/.config/flake8 Normal file
View File

@ -0,0 +1,2 @@
[flake8]
max-line-length = 88

View File

@ -75,6 +75,7 @@ Plugin 'vim-latex/vim-latex'
Plugin 'christoomey/vim-tmux-navigator'
Plugin 'let-def/ocp-indent-vim'
Plugin 'psf/black'
Plugin 'rust-lang/rust.vim'
call vundle#end() " required
filetype plugin indent on " required
@ -111,6 +112,12 @@ let g:syntastic_python_checkers = ['flake8']
let g:ale_c_clangtidy_checks = ['clang-diagnostic-*', 'clang-analyzer-*', '*', '-google-readability-*', '-llvm-include-order', '-hicpp-braces-around-statements', '-readability-braces-around-statements', '-cppcoreguidelines-avoid-magic-numbers', '-readability-magic-numbers']
let g:ale_c_parse_makefile=1
let g:ale_python_flake8_options="--append-config ~/.config/flake8"
""" ALE Rust
let g:ale_rust_cargo_use_clippy = executable('cargo-clippy')
let g:rustfmt_autosave = 1
let g:rustfmt_fail_silently = 1
""""""""""""""""" LaTeX
augroup tex_mappings