Skip to content

Commit 42c8204

Browse files
rjdellecesegeoffharcourt
authored andcommitted
Allow easy disabling of all ALE configs
Set `updatetime` option and `g:ale_lint_on_text_changed` variable in an Vim startup autocommand so that they won't be set when the user disables the `ale` augroup (with something like `silent! augroup! ale` or `augroup \ autocmd! \ augroup END`) in their local vimrc. This allows users to use ALE with its default linting settings without needing to manually `unlet` the `updatetime` option and `g:ale_lint_on_text_changed` variable also.
1 parent a4da3e4 commit 42c8204

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vimrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ augroup ale
5656
autocmd!
5757

5858
if g:has_async
59-
set updatetime=1000
60-
let g:ale_lint_on_text_changed = 0
59+
autocmd VimEnter *
60+
\ set updatetime=1000 |
61+
\ let g:ale_lint_on_text_changed = 0
6162
autocmd CursorHold * call ale#Queue(0)
6263
autocmd CursorHoldI * call ale#Queue(0)
6364
autocmd InsertEnter * call ale#Queue(0)

0 commit comments

Comments
 (0)