summaryrefslogtreecommitdiff
path: root/doc/ale.txt
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-02-25 12:43:13 +0000
committerw0rp <devw0rp@gmail.com>2018-02-25 12:43:20 +0000
commit0ddf16194d8f1b272127c5a6b2d84b5345757b17 (patch)
treebfcb7c6c2485e0775edcf904f0ad4f73115f09bb /doc/ale.txt
parent0292e5a4585ece0719ce97a174f424fa68e3d4bc (diff)
downloadale-0ddf16194d8f1b272127c5a6b2d84b5345757b17.zip
Fix #1306 - Tell users how to automatically close the loclist window in the documentation
Diffstat (limited to 'doc/ale.txt')
-rw-r--r--doc/ale.txt19
1 files changed, 14 insertions, 5 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index ad4a9603..999d2af4 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -921,10 +921,10 @@ g:ale_keep_list_window_open *g:ale_keep_list_window_open*
Type: |Number|
Default: `0`
- When set to `1`, this option will keep the loclist or quickfix windows
- event after all warnings/errors have been removed for files. By default
- the loclist or quicfix windows will be closed automatically when there
- are no warnings or errors.
+ When set to `1`, this option will keep the loclist or quickfix windows event
+ after all warnings/errors have been removed for files. By default the
+ loclist or quickfix windows will be closed automatically when there are no
+ warnings or errors.
See |g:ale_open_list|
@@ -1215,10 +1215,19 @@ g:ale_open_list *g:ale_open_list*
The window will be kept open until all warnings or errors are cleared,
including those not set by ALE, unless |g:ale_keep_list_window_open| is set
- to `1`, in which case the window will be kept open until closed manually.
+ to `1`, in which case the window will be kept open when no problems are
+ found.
The window size can be configured with |g:ale_list_window_size|.
+ If you want to close the loclist window automatically when the buffer is
+ closed, you can set up the following |autocmd| command: >
+
+ augroup CloseLoclistWindowGroup
+ autocmd!
+ autocmd QuitPre * if empty(&buftype) | lclose | endif
+ augroup END
+<
g:ale_pattern_options *g:ale_pattern_options*