From: Yegappan Lakshmanan Date: Sat, 27 Feb 2021 15:28:19 +0000 (-0800) Subject: When the hover popup text is MarkedString, split the contents by lines - Patch by... X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=816e8ac9e5ad7c6fbdbd6804bb5926f954630852;p=vim-lsp.git When the hover popup text is MarkedString, split the contents by lines - Patch by Shane-XB-Qian --- diff --git a/autoload/handlers.vim b/autoload/handlers.vim index a81ed71..923e2f3 100644 --- a/autoload/handlers.vim +++ b/autoload/handlers.vim @@ -279,7 +279,7 @@ def s:processHoverReply(lspserver: dict, req: dict, reply: dict): endif elseif reply.result.contents->has_key('value') # MarkedString - hoverText = reply.result.contents.value + hoverText = reply.result.contents.value->split("\n") else ErrMsg('Error: Unsupported hover contents (' .. reply.result.contents .. ')') return