summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Rhodes <nrhodes91@gmail.com>2018-08-12 10:06:48 +0100
committerNick Rhodes <nrhodes91@gmail.com>2018-08-12 10:10:39 +0100
commitcc114e2d0a22950285636e75a3562c88e13db7de (patch)
tree180aece7414a55fce822bb9b48ce7b81d4384416
parentc898d5d13097ac64f305ceb720c8bdefa7bb9fec (diff)
downloadale-cc114e2d0a22950285636e75a3562c88e13db7de.zip
Include info about `*` being a fallback
The `*` filetype is just fallback, and will be overridden by specific filetype matches.
-rw-r--r--README.md17
1 files changed, 6 insertions, 11 deletions
diff --git a/README.md b/README.md
index 09712719..d4d8f575 100644
--- a/README.md
+++ b/README.md
@@ -231,22 +231,17 @@ let b:ale_fixers = ['prettier', 'eslint']
let b:ale_fixers = {'javascript': ['prettier', 'eslint']}
```
-You can also configure your fixers from vimrc using `g:ale_fixers`, before
-or after ALE has been loaded.
+You can also configure your fixers from vimrc using `g:ale_fixers`, before or
+after ALE has been loaded. A `*` in place of the filetype will apply the
+corresponding list of fixers to all filetypes. If a subsequent specific filetype
+match is found it will be used instead of `*`. Note that using a plain list for
+`g:ale_fixers` is not supported.
```vim
" In ~/.vim/vimrc, or somewhere similar.
let g:ale_fixers = {
-\ 'javascript': ['eslint'],
-\}
-```
-
-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'],
+\ 'javascript': ['eslint'],
\}
```