summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/ale/linter.vim5
-rw-r--r--doc/ale.txt11
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.
===============================================================================