diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-31 22:04:33 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-31 22:04:33 +0100 |
commit | 735a6a2a885d8c5581a19f16998b4b6209742bd5 (patch) | |
tree | 2491953f638693e1a9825bb01052fe555f8db742 /plugin/ale.vim | |
parent | 5e4c302b5bfd916214865c3c3d3808c75d137932 (diff) | |
download | ale-735a6a2a885d8c5581a19f16998b4b6209742bd5.zip |
Fix #537 - Add support for balloons
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r-- | plugin/ale.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim index 1f9df896..85930f3d 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -144,6 +144,9 @@ let g:ale_echo_msg_warning_str = get(g:, 'ale_echo_msg_warning_str', 'Warning') " This flag can be set to 0 to disable echoing when the cursor moves. let g:ale_echo_cursor = get(g:, 'ale_echo_cursor', 1) +" This flag can be set to 0 to disable balloon support. +call ale#Set('set_balloons', has('balloon_eval')) + " A deprecated setting for ale#statusline#Status() " See :help ale#statusline#Count() for getting status reports. let g:ale_statusline_format = get(g:, 'ale_statusline_format', @@ -267,6 +270,10 @@ function! s:ALEToggle() abort " Lint immediately, including running linters against the file. call ale#Queue(0, 'lint_file') + + if g:ale_set_balloons + call ale#balloon#Enable() + endif else " Make sure the buffer number is a number, not a string, " otherwise things can go wrong. @@ -281,6 +288,10 @@ function! s:ALEToggle() abort if g:ale_set_highlights call ale#highlight#UpdateHighlights() endif + + if g:ale_set_balloons + call ale#balloon#Disable() + endif endif call ALEInitAuGroups() @@ -288,6 +299,10 @@ endfunction call ALEInitAuGroups() +if g:ale_set_balloons + call ale#balloon#Enable() +endif + " Define commands for moving through warnings and errors. command! -bar ALEPrevious :call ale#loclist_jumping#Jump('before', 0) command! -bar ALEPreviousWrap :call ale#loclist_jumping#Jump('before', 1) |