d3m3vilurr / clippy.vim

vim plugin for rust-clippy linter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clippy.vim

This is a vim plugin for rust-clippy.

This project based cargo.vim, jFransham's work and cargo-clippy.

Prerequired

Install

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']

Config variables

  • 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 run cargo rustc --bin=abcd

License

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.

About

vim plugin for rust-clippy linter

License:Apache License 2.0


Languages

Language:Vim Script 97.7%Language:Shell 2.3%