summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-06-21 01:21:11 +0100
committerw0rp <devw0rp@gmail.com>2018-06-21 01:21:11 +0100
commit69eb2fe86adaba5276e20d01c690d7ddaa8a5f1a (patch)
tree6a76713023b91ee0feb2becfe85dcf5cd4246088 /doc
parent34755eecdd767880af58a91c1b275fdd5ea843a8 (diff)
downloadale-69eb2fe86adaba5276e20d01c690d7ddaa8a5f1a.zip
Close #1417 - Support wildcard filetypes for fixers
Diffstat (limited to 'doc')
-rw-r--r--doc/ale.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index 5891debd..84989045 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -938,6 +938,14 @@ g:ale_fixers *g:ale_fixers*
`b:ale_fixers` can be set to a |List| of callbacks instead, which can be
more convenient.
+ A special `'*'` key be used as a wildcard filetype for configuring fixers
+ for every other type of file. For example: >
+
+ " Fix Python files with 'bar'.
+ " Don't fix 'html' files.
+ " Fix everything else with 'foo'.
+ let g:ale_fixers = {'python': ['bar'], 'html': [], '*': ['foo']}
+<
g:ale_fix_on_save *g:ale_fix_on_save*
b:ale_fix_on_save *b:ale_fix_on_save*