From 168768b32667b244e0afdc8da851d91ab95d6e2f Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 10 Jun 2019 20:54:38 +0100 Subject: Lint on InsertLeave, not in insert mode by default b:ale_lint_on_insert_leave is now supported as tests need it. These defaults are saner and cause fewer issues for users by default. --- plugin/ale.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugin/ale.vim') diff --git a/plugin/ale.vim b/plugin/ale.vim index cf39d632..7edf9a50 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -71,12 +71,12 @@ let g:ale_linter_aliases = get(g:, 'ale_linter_aliases', {}) let g:ale_lint_delay = get(g:, 'ale_lint_delay', 200) " This flag can be set to 'never' to disable linting when text is changed. -" This flag can also be set to 'insert' or 'normal' to lint when text is -" changed only in insert or normal mode respectively. -let g:ale_lint_on_text_changed = get(g:, 'ale_lint_on_text_changed', 'always') +" This flag can also be set to 'always' or 'insert' to lint when text is +" changed in both normal and insert mode, or only in insert mode respectively. +let g:ale_lint_on_text_changed = get(g:, 'ale_lint_on_text_changed', 'normal') " This flag can be set to 1 to enable linting when leaving insert mode. -let g:ale_lint_on_insert_leave = get(g:, 'ale_lint_on_insert_leave', 0) +let g:ale_lint_on_insert_leave = get(g:, 'ale_lint_on_insert_leave', 1) " 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) -- cgit v1.2.3