summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-06-10 20:54:38 +0100
committerw0rp <devw0rp@gmail.com>2019-06-10 20:54:38 +0100
commit168768b32667b244e0afdc8da851d91ab95d6e2f (patch)
tree61c022da7b2584ac9b4a405ba201ed01200dd99d /plugin/ale.vim
parent8b46fa3ee716485b4dd7c3f86c9302a140be6bfa (diff)
downloadale-168768b32667b244e0afdc8da851d91ab95d6e2f.zip
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.
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim8
1 files changed, 4 insertions, 4 deletions
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)