summaryrefslogtreecommitdiff
path: root/doc/ale.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ale.txt')
-rw-r--r--doc/ale.txt17
1 files changed, 17 insertions, 0 deletions
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*