summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authoryfery <yann@fery.me>2017-01-22 13:57:05 +0100
committerw0rp <w0rp@users.noreply.github.com>2017-01-22 12:57:05 +0000
commita23173eeb29d538fa323b1abfef91797c878ebe2 (patch)
tree0e59527c92c26ac1801fafbdfb2d476e403ace19 /plugin
parent9820899b9e09dba27a1fc0867fde3012769a01e7 (diff)
downloadale-a23173eeb29d538fa323b1abfef91797c878ebe2.zip
Add option to open loclist/quicklist when there are errors (#266)
* Add option to open loclist/quicklist when there are errors I copied PR #137, and tries to complete it by correcting some issues and adding vader tests. About tests, first time with vader, can you give some feedback if there are what you expected in PR #137. * Remove old code + fix indent issue * add g:ale_keep_list_window_open option * Correct bug with keep open option * Add comment into vader file * Fix errors for Travis CI build
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale.vim10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index 9d2f62c1..cb90aac8 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -74,8 +74,16 @@ if g:ale_lint_on_save
augroup END
endif
-" This flag can be set to 0 to disable setting the loclist.
+" These flags dictates if ale uses the quickfix or the loclist (loclist is the
+" default, quickfix overrides loclist).
let g:ale_set_loclist = get(g:, 'ale_set_loclist', 1)
+let g:ale_set_quickfix = get(g:, 'ale_set_quickfix', 0)
+
+" This flag dictates if ale open the configured loclist
+let g:ale_open_list = get(g:, 'ale_open_list', 0)
+
+" This flag dictates if ale keeps open loclist even if there is no error in loclist
+let g:ale_keep_list_window_open = get(g:, 'ale_keep_list_window_open', 0)
" This flag can be set to 0 to disable setting signs.
" This is enabled by default only if the 'signs' feature exists.