summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-10-12 23:25:41 +0100
committerw0rp <devw0rp@gmail.com>2017-10-12 23:25:41 +0100
commit663fe75d0faaf038e6f5e67a97940bf10990c0f0 (patch)
treeabcfcd211a84f677955fe906c1e41f90f3cb029b /autoload
parente71c4a8bea25e6998d4d852677790ad6bd5a7e68 (diff)
downloadale-663fe75d0faaf038e6f5e67a97940bf10990c0f0.zip
#965 - Make the cursor echo delay configurable
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/cursor.vim7
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