summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ale_linters/rust/cargo.vim1
-rw-r--r--doc/ale-rust.txt5
2 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/rust/cargo.vim b/ale_linters/rust/cargo.vim
index 30600cf8..84e4be74 100644
--- a/ale_linters/rust/cargo.vim
+++ b/ale_linters/rust/cargo.vim
@@ -27,4 +27,5 @@ call ale#linter#Define('rust', {
\ 'command_callback': 'ale_linters#rust#cargo#GetCommand',
\ 'callback': 'ale#handlers#rust#HandleRustErrors',
\ 'output_stream': 'stdout',
+\ 'lint_file': 1,
\})
diff --git a/doc/ale-rust.txt b/doc/ale-rust.txt
index d0d4f707..f06151f2 100644
--- a/doc/ale-rust.txt
+++ b/doc/ale-rust.txt
@@ -16,9 +16,8 @@ Integration Information
|g:ale_rust_ignore_error_codes| to ignore some of these errors.
2. cargo -- If your project is managed by Cargo, the whole project is
checked. That means that all errors are properly shown, but cargo can
- only operate on the files written on disk. That means it is highly
- recommended to turn off |g:ale_lint_on_text_changed| and to turn on
- |g:ale_lint_on_save| in your vimrc file.
+ only operate on the files written on disk, so errors will not be reported
+ while you type.
Only cargo is enabled by default. To switch to using rustc instead of cargo,
configure |g:ale_linters| appropriately: >