Configure ale not to lint while in insert mode, and to lint when leaving insert mode

This commit is contained in:
Kevin MacMartin 2018-03-13 11:40:42 -04:00
parent 9c24b1b8b5
commit c8de1131ba

View file

@ -14,6 +14,12 @@ let g:ale_list_window_size = 5
" don't fix on save
let g:ale_fix_on_save = 0
" configure when to lint
let g:ale_lint_on_text_changed = 'normal'
let g:ale_lint_on_enter = 1
let g:ale_lint_on_save = 1
let g:ale_lint_on_insert_leave = 1
" list of ale fixers
let g:ale_fixers = {
\ 'javascript': [ 'eslint' ]