summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2020-08-05 13:46:08 +0100
committerw0rp <devw0rp@gmail.com>2020-08-05 13:46:08 +0100
commitfa3a927ca3e587e42aed187430c069cca578a6ae (patch)
tree7cc147a18a0b0d8a8616a28a2370ddabd1e1a118 /autoload
parent1bd7b3e4ada513598f263ad9a92e44e550a4b917 (diff)
downloadale-fa3a927ca3e587e42aed187430c069cca578a6ae.zip
Fix #3266 - Truncate hover messages for LSP too
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/hover.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/autoload/ale/hover.vim b/autoload/ale/hover.vim
index 79c94266..fe8108c0 100644
--- a/autoload/ale/hover.vim
+++ b/autoload/ale/hover.vim
@@ -105,6 +105,8 @@ function! ale#hover#HandleLSPResponse(conn_id, response) abort
\&& exists('*balloon_show')
\&& ale#Var(l:options.buffer, 'set_balloons')
call balloon_show(l:str)
+ elseif get(l:options, 'truncated_echo', 0)
+ call ale#cursor#TruncatedEcho(split(a:response.body.displayString, "\n")[0])
elseif g:ale_hover_to_preview
call ale#preview#Show(split(l:str, "\n"), {
\ 'filetype': 'ale-preview.message',