diff options
author | w0rp <devw0rp@gmail.com> | 2019-06-10 20:54:38 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-06-10 20:54:38 +0100 |
commit | 168768b32667b244e0afdc8da851d91ab95d6e2f (patch) | |
tree | 61c022da7b2584ac9b4a405ba201ed01200dd99d /test/test_cursor_warnings.vader | |
parent | 8b46fa3ee716485b4dd7c3f86c9302a140be6bfa (diff) | |
download | ale-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 'test/test_cursor_warnings.vader')
-rw-r--r-- | test/test_cursor_warnings.vader | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_cursor_warnings.vader b/test/test_cursor_warnings.vader index 24652909..2a6156f0 100644 --- a/test/test_cursor_warnings.vader +++ b/test/test_cursor_warnings.vader @@ -1,6 +1,10 @@ Before: Save g:ale_echo_msg_format Save g:ale_echo_cursor + Save b:ale_lint_on_insert_leave + + let g:ale_echo_msg_format = '%code: %%s' + let b:ale_lint_on_insert_leave = 0 " We should prefer the error message at column 10 instead of the warning. let g:ale_buffer_info = { @@ -91,6 +95,9 @@ Before: return empty(l:lines) ? '' : l:lines[-1] endfunction + call ale#linter#Reset() + call ale#linter#PreventLoading('javascript') + After: Restore @@ -117,6 +124,8 @@ After: noautocmd :q! endif + call ale#linter#Reset() + Given javascript(A Javscript file with warnings/errors): var x = 3 + 12345678 var x = 5*2 + parseInt("10"); |