diff options
author | w0rp <devw0rp@gmail.com> | 2017-02-15 22:59:26 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-02-15 22:59:33 +0000 |
commit | 9e7034c6e21743c35ed98b9820eff48346362762 (patch) | |
tree | 9d112fe2140804d1caef96b811cf4b5c03d7162f | |
parent | 732e8a813f4f057b9c1f305272112aebb72e7b39 (diff) | |
download | ale-9e7034c6e21743c35ed98b9820eff48346362762.zip |
Fix #319 - Enable only cargo for Rust by default
-rw-r--r-- | autoload/ale/linter.vim | 5 | ||||
-rw-r--r-- | doc/ale.txt | 11 |
2 files changed, 14 insertions, 2 deletions
diff --git a/autoload/ale/linter.vim b/autoload/ale/linter.vim index e586c1f3..e7b3b99d 100644 --- a/autoload/ale/linter.vim +++ b/autoload/ale/linter.vim @@ -18,10 +18,13 @@ let s:default_ale_linter_aliases = { " The user defined linter selections will be merged with this Dictionary. " " No linters are used for plaintext files by default. +" +" Only cargo is enabled for Rust by default. let s:default_ale_linters = { -\ 'zsh': ['shell'], \ 'csh': ['shell'], +\ 'rust': ['cargo'], \ 'text': [], +\ 'zsh': ['shell'], \} " Testing/debugging helper to unload all linters. diff --git a/doc/ale.txt b/doc/ale.txt index 93cd184b..d680563b 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -289,8 +289,10 @@ g:ale_linters *g:ale_linters* following values: > { - \ 'zsh': ['shell'], \ 'csh': ['shell'], + \ 'rust': ['cargo'], + \ 'text': [], + \ 'zsh': ['shell'], \} < This option can be used to enable only a particular set of linters for a @@ -1047,6 +1049,13 @@ Some linters may have requirements for some other plugins being installed. recommended to turn off |g:ale_lint_on_text_changed| and to turn on |g:ale_lint_on_save|. + Only cargo is enabled by default. To switch to using rustc instead of cargo, + configure |g:ale_linters| appropriately: > + + " Set the help text for the option for more information. + let g:ale_linters = {'rust': ['rustc']} +< + Also note that rustc 1.12. or later is needed. =============================================================================== |