Fix #371 Allow ALE to be disabled in different buffers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user