Fix #42, where some linting isn't run when opening some files.
This commit is contained in:
parent
514f088d2c
commit
478c32f85d
@ -108,9 +108,9 @@ g:ale_lint_on_enter *g:ale_lint_on_enter*
|
|||||||
Type: |Number|
|
Type: |Number|
|
||||||
Default: `1`
|
Default: `1`
|
||||||
|
|
||||||
When this option is set to `1`, the |BufEnter| event will be used to apply
|
When this option is set to `1`, the |BufEnter| and |BufRead| events will be
|
||||||
linters when buffers are first opened. If this is not desired, this variable
|
used to apply linters when buffers are first opened. If this is not desired,
|
||||||
can be set to `0` in your vimrc file to disable this behaviour.
|
this variable can be set to `0` in your vimrc file to disable this behaviour.
|
||||||
|
|
||||||
|
|
||||||
g:ale_lint_on_save *g:ale_lint_on_save*
|
g:ale_lint_on_save *g:ale_lint_on_save*
|
||||||
|
@ -355,7 +355,7 @@ endif
|
|||||||
if g:ale_lint_on_enter
|
if g:ale_lint_on_enter
|
||||||
augroup ALERunOnEnterGroup
|
augroup ALERunOnEnterGroup
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufEnter * call ALELint(20)
|
autocmd BufEnter,BufRead * call ALELint(0)
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user