diff options
author | w0rp <devw0rp@gmail.com> | 2017-10-12 23:25:41 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-10-12 23:25:41 +0100 |
commit | 663fe75d0faaf038e6f5e67a97940bf10990c0f0 (patch) | |
tree | abcfcd211a84f677955fe906c1e41f90f3cb029b /autoload | |
parent | e71c4a8bea25e6998d4d852677790ad6bd5a7e68 (diff) | |
download | ale-663fe75d0faaf038e6f5e67a97940bf10990c0f0.zip |
#965 - Make the cursor echo delay configurable
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/cursor.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/autoload/ale/cursor.vim b/autoload/ale/cursor.vim index f5394a43..6238b4a9 100644 --- a/autoload/ale/cursor.vim +++ b/autoload/ale/cursor.vim @@ -113,8 +113,13 @@ function! ale#cursor#EchoCursorWarningWithDelay() abort " we should echo something. Otherwise we can end up doing processing " the echo message far too frequently. if l:pos != s:last_pos + let l:delay = ale#Var(bufnr(''), 'echo_delay') + let s:last_pos = l:pos - let s:cursor_timer = timer_start(10, function('ale#cursor#EchoCursorWarning')) + let s:cursor_timer = timer_start( + \ l:delay, + \ function('ale#cursor#EchoCursorWarning') + \) endif endfunction |