summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-05-11 17:19:45 +0100
committerw0rp <devw0rp@gmail.com>2019-05-11 17:19:45 +0100
commitdf90725c858103f1c63eb1c96f3e4e4727c32a7d (patch)
tree4db5ee24517d24f19ab8a7b199e39e298875692b /autoload
parentedd31143946aa396a0021174b0dfb6927b630856 (diff)
downloadale-df90725c858103f1c63eb1c96f3e4e4727c32a7d.zip
Support b:ale_completion_enabled for disabling it for some buffers
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/completion.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim
index e775347b..456fe68a 100644
--- a/autoload/ale/completion.vim
+++ b/autoload/ale/completion.vim
@@ -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