diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-26 16:20:17 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-26 16:20:17 +0100 |
commit | 9460e58c3b254d6716d607799fa9333f3d20d40f (patch) | |
tree | 035570b598fac583f5f14782a1f6ad191349ab83 /autoload/ale.vim | |
parent | c77cf0e518e18b2e6f1f259c0f92e717d28c8998 (diff) | |
download | ale-9460e58c3b254d6716d607799fa9333f3d20d40f.zip |
Fix #371 Allow ALE to be disabled in different buffers
Diffstat (limited to 'autoload/ale.vim')
-rw-r--r-- | autoload/ale.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/autoload/ale.vim b/autoload/ale.vim index 066bfa07..62a8bf4d 100644 --- a/autoload/ale.vim +++ b/autoload/ale.vim @@ -29,6 +29,11 @@ function! ale#Queue(delay, ...) abort throw "linting_flag must be either '' or 'lint_file'" endif + " Stop here if ALE is disabled. + if !ale#Var(bufnr(''), 'enabled') + return + endif + if ale#ShouldDoNothing() return endif |