diff options
author | Luan Santos <cfcluan@gmail.com> | 2018-11-06 22:31:35 -0800 |
---|---|---|
committer | Luan Santos <cfcluan@gmail.com> | 2018-11-06 22:31:35 -0800 |
commit | f58a5cba0583231f77bd5e7cd5ab7a246fb00cd1 (patch) | |
tree | 0b8d655d3cf9075e63a421f5ac7db0012185d150 /autoload/ale/engine.vim | |
parent | 25068de91d1ff61cba02da4ad19f45d35c634eb9 (diff) | |
download | ale-f58a5cba0583231f77bd5e7cd5ab7a246fb00cd1.zip |
Move virtualtext handling to own file
This allows cursor and virtualtext to be independently autoloaded.
Diffstat (limited to 'autoload/ale/engine.vim')
-rw-r--r-- | autoload/ale/engine.vim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim index f49d607b..b44be73c 100644 --- a/autoload/ale/engine.vim +++ b/autoload/ale/engine.vim @@ -298,12 +298,18 @@ function! ale#engine#SetResults(buffer, loclist) abort endif if l:linting_is_done - if g:ale_echo_cursor || g:ale_virtualtext_cursor + if g:ale_echo_cursor " Try and echo the warning now. " This will only do something meaningful if we're in normal mode. call ale#cursor#EchoCursorWarning() endif + if g:ale_virtualtext_cursor + " Try and show the warning now. + " This will only do something meaningful if we're in normal mode. + call ale#virtualtext#ShowCursorWarning() + endif + " Reset the save event marker, used for opening windows, etc. call setbufvar(a:buffer, 'ale_save_event_fired', 0) " Set a marker showing how many times a buffer has been checked. |