summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorNick Rhodes <nrhodes91@gmail.com>2018-08-12 07:56:14 +0100
committerNick Rhodes <nrhodes91@gmail.com>2018-08-12 08:03:53 +0100
commitc898d5d13097ac64f305ceb720c8bdefa7bb9fec (patch)
tree038c282182b912249df4efe27323cf4ebfa20c80 /README.md
parent6167f756280c6d4d10a5d6dc7453393588d90178 (diff)
downloadale-c898d5d13097ac64f305ceb720c8bdefa7bb9fec.zip
Update README with the `*` ft option for the fixers object
It wasn't immediately obvious that the `g:ale_fixers` cannot be a list, and would allow the use of `*` to match all filetypes. I was hoping to add a bit more detail to the README to make this clearer.
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index cd11d323..09712719 100644
--- a/README.md
+++ b/README.md
@@ -241,6 +241,15 @@ let g:ale_fixers = {
\}
```
+A `*` in place of the filetype will apply the corresponding list of fixers to
+all filetypes. Note that using a plain list for `g:ale_fixers` is not supported.
+
+```vim
+let g:ale_fixers = {
+\ '*': ['remove_trailing_lines', 'trim_whitespace'],
+\}
+```
+
If you want to automatically fix files when you save them, you need to turn
a setting on in vimrc.