Support b:ale_completion_enabled for disabling it for some buffers

This commit is contained in:
w0rp
2019-05-11 17:19:45 +01:00
parent edd3114394
commit df90725c85
3 changed files with 17 additions and 2 deletions

View File

@@ -584,7 +584,7 @@ function! ale#completion#GetCompletions(source) abort
endfunction
function! s:TimerHandler(...) abort
if !g:ale_completion_enabled
if !get(b:, 'ale_completion_enabled', g:ale_completion_enabled)
return
endif
@@ -609,7 +609,7 @@ function! ale#completion#StopTimer() abort
endfunction
function! ale#completion#Queue() abort
if !g:ale_completion_enabled
if !get(b:, 'ale_completion_enabled', g:ale_completion_enabled)
return
endif