This is a vim plugin for rust-clippy.
This project based cargo.vim, jFransham's work and cargo-clippy.
- rust nightly version
- syntastic,
This plugin require builed rust-clippy library.
cd ~/.vim/bundle/clippy.vim
./install.sh
If you use NeoBundle
, just add the following to vimrc:
NeoBundle 'd3m3vilurr/clippy.vim', {
\ 'build': {
\ 'linux': './install.sh'
\ }
\ }
And syntastic configure add to vimrc:
let g:syntastic_rust_checkers = ['rustc', 'clippy']
- let g:syntastic_rust_clippy_lib - Path of libclippy.so
- let g:syntastic_rust_clippy_pedantic - Pedantic mode flag; default 0
- let g:syntastic_rust_clippy_cargo - rust-clippy build mode; default 1
- 0: Single file mode, direct use
rustc
command - 1: Simple cargo mode, use
cargo rustc
command - other: Complex mode, use
cargo rustc <user_set_string>
eg. If you set--bin=abcd
, it will runcargo rustc --bin=abcd
- 0: Single file mode, direct use
clippy.vim
is primarily distributed under the terms of both the MIT license
and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.