mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-10 13:32:34 +08:00
Support b:ale_completion_enabled for disabling it for some buffers
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user