From c8de1131baa701bfbe30526fa45240f07fb7b6ee Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 13 Mar 2018 11:40:42 -0400 Subject: [PATCH] Configure ale not to lint while in insert mode, and to lint when leaving insert mode --- vim/config/plugins/ale.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vim/config/plugins/ale.vim b/vim/config/plugins/ale.vim index e3da089..0c34dcf 100644 --- a/vim/config/plugins/ale.vim +++ b/vim/config/plugins/ale.vim @@ -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' ]