mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 20:54:26 +08:00
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user