diff options
author | w0rp <devw0rp@gmail.com> | 2017-12-19 14:43:18 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-12-19 14:43:24 +0000 |
commit | d2bea5c3101e9f198492efb8ca294e63e62415a4 (patch) | |
tree | 6a8315a981950bcfb8e4420ef158bc9f2c35c3c0 /autoload | |
parent | a7d51afda5934636ede2af39cf99576b7e583dff (diff) | |
download | ale-d2bea5c3101e9f198492efb8ca294e63e62415a4.zip |
Allow the cursor messages to be disabled while Vim is running
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/cursor.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/autoload/ale/cursor.vim b/autoload/ale/cursor.vim index 25e91e71..50b1fb50 100644 --- a/autoload/ale/cursor.vim +++ b/autoload/ale/cursor.vim @@ -55,6 +55,10 @@ function! ale#cursor#EchoCursorWarning(...) abort endfunction function! s:EchoImpl() abort + if !g:ale_echo_cursor + return + endif + " Only echo the warnings in normal mode, otherwise we will get problems. if mode() isnot# 'n' return @@ -81,6 +85,10 @@ function! s:EchoImpl() abort endfunction function! ale#cursor#EchoCursorWarningWithDelay() abort + if !g:ale_echo_cursor + return + endif + " Only echo the warnings in normal mode, otherwise we will get problems. if mode() isnot# 'n' return |