summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-05 09:27:03 +0100
committerw0rp <devw0rp@gmail.com>2016-10-05 09:27:03 +0100
commit61dad857a5f22d07226cc393a211039f4fe384c8 (patch)
tree0621a5f4bf12208a293d4fb86fc8e4545d34a26b /plugin
parent322ecedf8f5e57be1aeff96a6d2cd5780b012285 (diff)
downloadale-61dad857a5f22d07226cc393a211039f4fe384c8.zip
Add a very short delay after opening a buffer for running the linter to get it to run more. Increase the delay when typing a bit to reduce juttering.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale/aaflags.vim2
-rw-r--r--plugin/ale/zmain.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugin/ale/aaflags.vim b/plugin/ale/aaflags.vim
index 75accc9e..f0c0bb7c 100644
--- a/plugin/ale/aaflags.vim
+++ b/plugin/ale/aaflags.vim
@@ -15,7 +15,7 @@ let g:ale_lint_on_text_changed = get(g:, 'ale_lint_on_text_changed', 1)
" execution of a linter when text is changed. The timeout will be set and
" cleared each time text is changed, so repeated edits won't trigger the
" jobs for linting until enough time has passed after editing is done.
-let g:ale_lint_delay = get(g:, 'ale_lint_delay', 100)
+let g:ale_lint_delay = get(g:, 'ale_lint_delay', 200)
" This flag can be set to 0 to disable linting when the buffer is entered.
let g:ale_lint_on_enter = get(g:, 'ale_lint_on_enter', 1)
diff --git a/plugin/ale/zmain.vim b/plugin/ale/zmain.vim
index 00a6648a..1307d696 100644
--- a/plugin/ale/zmain.vim
+++ b/plugin/ale/zmain.vim
@@ -350,7 +350,7 @@ endif
if g:ale_lint_on_enter
augroup ALERunOnEnterGroup
autocmd!
- autocmd BufEnter * call ALELint(0)
+ autocmd BufEnter * call ALELint(10)
augroup END
endif