diff options
author | w0rp <devw0rp@gmail.com> | 2018-03-03 16:22:56 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-03-03 16:22:56 +0000 |
commit | 08cfd5f90c8113f4db25f60833b690665046b495 (patch) | |
tree | bacb0c5b75209f175e38213b6ae27ba89db1ad97 /doc | |
parent | 565ffa0dc5e2fe53663f7228c05ad927c190b9e6 (diff) | |
download | ale-08cfd5f90c8113f4db25f60833b690665046b495.zip |
Close #1379 - Increment b:ale_linted when a buffer is checked
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ale.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/ale.txt b/doc/ale.txt index adcdccdf..95c3c0e1 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -2280,6 +2280,19 @@ ale#statusline#Count(buffer) *ale#statusline#Count()* `total` -> The total number of problems. +b:ale_linted *b:ale_linted* + + `b:ale_linted` is set to the number of times a buffer has been checked by + ALE after all linters for one lint cycle have finished checking a buffer. + This variable may not be defined until ALE first checks a buffer, so it + should be accessed with |get()| or |getbufvar()|. For example: > + + " Print a message indicating how many times ALE has checked this buffer. + echo 'ALE has checked this buffer ' . get(b:, 'ale_linted') . ' time(s).' + " Print 'checked' using getbufvar() if a buffer has been checked. + echo getbufvar(bufnr(''), 'ale_linted', 0) > 0 ? 'checked' : 'not checked' +< + ALELintPre *ALELintPre-autocmd* ALELintPost *ALELintPost-autocmd* |