Fix #371 Allow ALE to be disabled in different buffers

This commit is contained in:
w0rp
2017-05-26 16:20:17 +01:00
parent c77cf0e518
commit 9460e58c3b
4 changed files with 122 additions and 0 deletions

View File

@@ -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*