Fix #319 - Enable only cargo for Rust by default

This commit is contained in:
w0rp 2017-02-15 22:59:26 +00:00
parent 732e8a813f
commit 9e7034c6e2
2 changed files with 14 additions and 2 deletions

View File

@ -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.

View File

@ -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.
===============================================================================