Treat ale_open_list integer values as thresholds (#4050)

Only open list window if the number of warnings or errors equals to or
exceeds the value of ale_open_list. No change when set to `1`.

Co-authored-by: cos <cos>
This commit is contained in:
nospam2998andcos authored and GitHub committed 2022-02-04 17:56:48 +00:00
1 parent 5856c06775
commit a58b7b5efb
3 files changed
+48 -7

No files matched your search

+3
View File
@@ -1797,6 +1797,9 @@ g:ale_open_list *g:ale_open_list*
loclist (|lopen|) or for the quickfix list instead if |g:ale_set_quickfix|
is `1`. (|copen|)
When set to any higher numberical value, ALE will only open the window when
the number of warnings or errors are at least that many.
When set to `'on_save'`, ALE will only open the loclist after buffers have
been saved. The list will be opened some time after buffers are saved and
any linter for a buffer returns results.