diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-08-13 11:33:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-13 11:33:56 +0100 |
commit | 04b25c8ee22c144095a643b39f472ef42fc1a71a (patch) | |
tree | 3dba5ab0afa7129099e616f65e29b6713482812a /README.md | |
parent | 41791778302b51423684b74b8170702cda16cc90 (diff) | |
parent | cc114e2d0a22950285636e75a3562c88e13db7de (diff) | |
download | ale-04b25c8ee22c144095a643b39f472ef42fc1a71a.zip |
Merge pull request #1809 from nrhodes91/readme-global-fixers
Update README with the `*` ft option for the fixers object
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -231,12 +231,16 @@ 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 = { +\ '*': ['remove_trailing_lines', 'trim_whitespace'], \ 'javascript': ['eslint'], \} ``` |