mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-16 11:01:29 +08:00
Support b:ale_completion_enabled for disabling it for some buffers
This commit is contained in:
3 files changed
+17
-2
No files matched your search
@@ -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