summaryrefslogtreecommitdiff
path: root/doc/ale-rust.txt
diff options
context:
space:
mode:
authorKelly Fox <kelly@bumfuddled.com>2017-10-21 12:31:49 -0500
committerKelly Fox <kelly@bumfuddled.com>2017-10-21 12:31:49 -0500
commit35031a0b8a384766277a8b38f84c28ae89a17430 (patch)
tree59c467e4ded6afd88076c474ae139ee9d5ef4a62 /doc/ale-rust.txt
parent3878be99771d81571789f5595bf082c63ed61755 (diff)
downloadale-35031a0b8a384766277a8b38f84c28ae89a17430.zip
add rustfmt fixer
Diffstat (limited to 'doc/ale-rust.txt')
-rw-r--r--doc/ale-rust.txt13
1 files changed, 13 insertions, 0 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: