summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-02-25 12:57:54 +0000
committerw0rp <devw0rp@gmail.com>2018-02-25 12:57:54 +0000
commit478a2883a6c75e888bce2b0e7c800d5d8990f29e (patch)
treebd18537682b39659aca13f8e0dc1955554208f22
parent0ddf16194d8f1b272127c5a6b2d84b5345757b17 (diff)
downloadale-478a2883a6c75e888bce2b0e7c800d5d8990f29e.zip
#1363 Make ale#engine#IsCheckingBuffer part of the public API
-rw-r--r--autoload/ale/engine.vim2
-rw-r--r--doc/ale.txt7
2 files changed, 9 insertions, 0 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim
index 8c3d4c73..a21eecdd 100644
--- a/autoload/ale/engine.vim
+++ b/autoload/ale/engine.vim
@@ -76,6 +76,8 @@ function! ale#engine#InitBufferInfo(buffer) abort
return 0
endfunction
+" This function is documented and part of the public API.
+"
" Return 1 if ALE is busy checking a given buffer
function! ale#engine#IsCheckingBuffer(buffer) abort
let l:info = get(g:ale_buffer_info, a:buffer, {})
diff --git a/doc/ale.txt b/doc/ale.txt
index 999d2af4..fd3e4897 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -1907,6 +1907,13 @@ ale#engine#GetLoclist(buffer) *ale#engine#GetLoclist()*
be copied before applying |map()| or |filter()|.
+ale#engine#IsCheckingBuffer(buffer) *ale#engine#IsCheckingBuffer()*
+
+ Given a buffer number, returns `1` when ALE is busy checking that buffer.
+
+ This function can be used for status lines, tab names, etc.
+
+
ale#engine#ManageFile(buffer, filename) *ale#engine#ManageFile()*
Given a buffer number for a buffer currently running some linting tasks