summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-10-26 09:22:33 +0100
committerw0rp <devw0rp@gmail.com>2018-10-26 09:22:52 +0100
commit77aacf0c91e15449e9b0c332047b666dd21ee9d4 (patch)
treede7a707e5539583a22a0cb5e029ad2bb98a78f09 /doc
parent320c74ce1a28bfb4f2e10e1efcd2ca93701fc00e (diff)
downloadale-77aacf0c91e15449e9b0c332047b666dd21ee9d4.zip
#927 Allow b:ale_linter_aliases to be set to a String
Diffstat (limited to 'doc')
-rw-r--r--doc/ale.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index 7e37d2dc..66ce8ab1 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -1310,10 +1310,12 @@ g:ale_linter_aliases *g:ale_linter_aliases*
ALE will first look for aliases for filetypes in the `b:ale_linter_aliases`
variable, then `g:ale_linter_aliases`, and then a default Dictionary.
- `b:ale_linter_aliases` can be set to a |List|, to tell ALE to load the
- linters for specific filetypes for a given buffer. >
+ `b:ale_linter_aliases` can be set to a |List| or a |String|, to tell ALE to
+ load the linters for specific filetypes for a given buffer. >
let b:ale_linter_aliases = ['html', 'javascript', 'css']
+ " OR, Alias a filetype to only a single filetype with a String.
+ let b:ale_linter_aliases = 'javascript'
<
No linters will be loaded when the buffer's filetype is empty.