diff options
author | w0rp <w0rp@users.noreply.github.com> | 2017-04-13 00:02:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 00:02:18 +0100 |
commit | e2287a42bce9080ed42b46cc9e8d544838236ec1 (patch) | |
tree | 8ff7245de52cf308c7012fae95dda354fa5c3aad /doc | |
parent | 8afd914c6da19da217a5fb871f14d05e7b9d1a00 (diff) | |
parent | 475dd2e76a0fe84d6c804ee00ea5b04a1fbdcdd2 (diff) | |
download | ale-e2287a42bce9080ed42b46cc9e8d544838236ec1.zip |
Merge pull request #463 from valtermro/multi-ft-aliases
Add support for multiple filetypes in filetype aliasing
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ale.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/ale.txt b/doc/ale.txt index 04d5c344..85409fc2 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -380,6 +380,14 @@ g:ale_linter_aliases *g:ale_linter_aliases* not the aliased type (`'php'`). This allows an aliased type to run a different set of linters from the type it is being mapped to. + Passing a list of filetypes is also supported. Say you want to lint + javascript and css embedded in HTML (using linters that support that). + You could alias `html` like so: + + `let g:ale_linter_aliases = {'html': ['html', 'javascript', 'css']}` + + Note that `html` itself was included as an alias. That is because aliases + will override the original linters for the aliased filetepe. g:ale_linters *g:ale_linters* |