From fa3a927ca3e587e42aed187430c069cca578a6ae Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 5 Aug 2020 13:46:08 +0100 Subject: [PATCH] Fix #3266 - Truncate hover messages for LSP too --- autoload/ale/hover.vim | 2 ++ 1 file changed, 2 insertions(+) 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',