diff --git a/README.md b/README.md index 7d3c2e2..ddcb318 100644 --- a/README.md +++ b/README.md @@ -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 75accc9..f0c0bb7 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 00a6648..1307d69 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