summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-10-24 22:20:03 +0100
committerGitHub <noreply@github.com>2017-10-24 22:20:03 +0100
commitc248885e5790ce81018ddc8f8afbc3c173051059 (patch)
tree8fb8fcfc71ee025c2785f3fc86dad3b0d59ac43c /doc
parent0e4dd95e5dac4ef5ac7877b1885f1c8300a53bd3 (diff)
parent35031a0b8a384766277a8b38f84c28ae89a17430 (diff)
downloadale-c248885e5790ce81018ddc8f8afbc3c173051059.zip
Merge pull request #1025 from kfox/add-rustfmt-fixer
add rustfmt fixer
Diffstat (limited to 'doc')
-rw-r--r--doc/ale-rust.txt13
-rw-r--r--doc/ale.txt3
2 files changed, 15 insertions, 1 deletions
diff --git a/doc/ale-rust.txt b/doc/ale-rust.txt
index 52dc3d61..e20aea2c 100644
--- a/doc/ale-rust.txt
+++ b/doc/ale-rust.txt
@@ -22,6 +22,8 @@ Integration Information
over cargo. rls implements the Language Server Protocol for incremental
compilation of Rust code, and can check Rust files while you type. `rls`
requires Rust files to contained in Cargo projects.
+ 4. rustfmt -- If you have `rustfmt` installed, you can use it as a fixer to
+ consistently reformat your Rust code.
Only cargo is enabled by default. To switch to using rustc instead of cargo,
configure |g:ale_linters| appropriately: >
@@ -71,4 +73,15 @@ g:ale_rust_ignore_error_codes *g:ale_rust_ignore_error_codes*
===============================================================================
+rustfmt *ale-rust-rustfmt*
+
+g:ale_rust_rustfmt_options *g:ale_rust_rustfmt_options*
+ *b:ale_rust_rustfmt_options*
+ Type: |String|
+ Default: `''`
+
+ This variable can be set to pass additional options to the rustfmt fixer.
+
+
+===============================================================================
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
diff --git a/doc/ale.txt b/doc/ale.txt
index b764fe6b..47b95438 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -144,6 +144,7 @@ CONTENTS *ale-contents*
cargo...............................|ale-rust-cargo|
rls.................................|ale-rust-rls|
rustc...............................|ale-rust-rustc|
+ rustfmt.............................|ale-rust-rustfmt|
sass..................................|ale-sass-options|
stylelint...........................|ale-sass-stylelint|
scala.................................|ale-scala-options|
@@ -282,7 +283,7 @@ Notes:
* reStructuredText: `proselint`
* RPM spec: `rpmlint`
* Ruby: `brakeman`, `rails_best_practices`!!, `reek`, `rubocop`, `ruby`
-* Rust: `cargo`!!, `rls`, `rustc` (see |ale-integration-rust|)
+* Rust: `cargo`!!, `rls`, `rustc` (see |ale-integration-rust|), `rustfmt`
* SASS: `sass-lint`, `stylelint`
* SCSS: `sass-lint`, `scss-lint`, `stylelint`, `prettier`
* Scala: `scalac`, `scalastyle`