mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-04 01:13:44 +08:00
Fix #373 - echo the cursor message after lint cycles or when leaving Insert mode
This commit is contained in:
1 parent
fab9e8f5ea
commit
0e50a7d278
3 files changed
+49
No files matched your search
@@ -166,6 +166,10 @@ function! s:ALEInitAuGroups() abort
|
||||
autocmd!
|
||||
if g:ale_enabled && g:ale_echo_cursor
|
||||
autocmd CursorMoved,CursorHold * call ale#cursor#EchoCursorWarningWithDelay()
|
||||
" Look for a warning to echo as soon as we leave Insert mode.
|
||||
" The script's position variable used when moving the cursor will
|
||||
" not be changed here.
|
||||
autocmd InsertLeave * call ale#cursor#EchoCursorWarning()
|
||||
endif
|
||||
augroup END
|
||||
|
||||
|
||||
Reference in new issue
Block a user