From 6ec965c8e4618c14b05b05bd554b3fed9c1191e1 Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 30 May 2017 21:32:51 +0100 Subject: #591 Support fixing files on save --- doc/ale.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'doc') diff --git a/doc/ale.txt b/doc/ale.txt index 8fb048e6..1e3ac0fb 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -311,6 +311,18 @@ g:ale_fixers *g:ale_fixers* This variable can be overriden with variables in each buffer. +g:ale_fix_on_save *g:ale_fix_on_save* + + Type: |Number| + Default: `0` + + When set to 1, ALE will fix files when they are saved. + + If |g:ale_lint_on_save| is set to 1, files will be checked with linters + after files are fixed, only when the buffer is open, or re-opened. Changes + to the file will saved to the file on disk. + + g:ale_history_enabled *g:ale_history_enabled* Type: |Number| @@ -770,6 +782,11 @@ upon some lines immediately, then run `eslint` from the ALE registry, and then call a lambda function which will remove every single line comment from the file. +Files can be fixed automatically with the following options, which are all off +by default. + +|g:ale_fix_on_save| - Fix files when they are saved. + =============================================================================== 5. Integration Documentation *ale-integrations* -- cgit v1.2.3