Fix #319 - Enable only cargo for Rust by default
This commit is contained in:
parent
732e8a813f
commit
9e7034c6e2
@ -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.
|
||||
|
11
doc/ale.txt
11
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.
|
||||
|
||||
===============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user