diff options
author | w0rp <devw0rp@gmail.com> | 2016-10-05 09:27:03 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2016-10-05 09:27:03 +0100 |
commit | 61dad857a5f22d07226cc393a211039f4fe384c8 (patch) | |
tree | 0621a5f4bf12208a293d4fb86fc8e4545d34a26b | |
parent | 322ecedf8f5e57be1aeff96a6d2cd5780b012285 (diff) | |
download | ale-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.
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | plugin/ale/aaflags.vim | 2 | ||||
-rw-r--r-- | plugin/ale/zmain.vim | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -71,7 +71,7 @@ vimrc file for all given linters is as follows: | ------ | ----------- | ------- | | `g:ale_linters` | a dictionary of linters to whitelist | _not set_ | | `g:ale_lint_on_text_changed` | lint while typing | `1` | -| `g:ale_lint_delay` | milliseconds to wait before linting | `100` | +| `g:ale_lint_delay` | milliseconds to wait before linting | `200` | | `g:ale_lint_on_enter` | lint when opening a file | `1` | | `g:ale_lint_on_save` | lint when saving a file | `0` | | `g:ale_set_loclist` | set the loclist with errors | `1` | 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 |