summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-05-26 16:20:17 +0100
committerw0rp <devw0rp@gmail.com>2017-05-26 16:20:17 +0100
commit9460e58c3b254d6716d607799fa9333f3d20d40f (patch)
tree035570b598fac583f5f14782a1f6ad191349ab83 /doc
parentc77cf0e518e18b2e6f1f259c0f92e717d28c8998 (diff)
downloadale-9460e58c3b254d6716d607799fa9333f3d20d40f.zip
Fix #371 Allow ALE to be disabled in different buffers
Diffstat (limited to 'doc')
-rw-r--r--doc/ale.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index bc632e21..4868e17c 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -277,6 +277,7 @@ g:ale_emit_conflict_warnings *g:ale_emit_conflict_warnings*
g:ale_enabled *g:ale_enabled*
+ *b:ale_enabled*
Type: |Number|
Default: `1`
@@ -285,6 +286,16 @@ g:ale_enabled *g:ale_enabled*
error checking will be performed, etc. ALE can be toggled on and off with
the |ALEToggle| command, which changes this option.
+ ALE can be disabled in each buffer by setting `let b:ale_enabled = 0`
+ Disabling ALE based on filename patterns can be accomplished by setting
+ a regular expression for |g:ale_pattern_options|. For example: >
+
+ " Disable linting for all minified JS files.
+ let g:ale_pattern_options = {'\.min.js$': {'ale_enabled': 0}}
+<
+
+ See |g:ale_pattern_options| for more information on that option.
+
g:ale_fixers *g:ale_fixers*
*b:ale_fixers*