mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-16 01:07:06 +08:00
Fix #371 Allow ALE to be disabled in different buffers
This commit is contained in:
11
doc/ale.txt
11
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*
|
||||
|
||||
Reference in New Issue
Block a user