]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
When the hover popup text is MarkedString, split the contents by lines - Patch by...
authorYegappan Lakshmanan <yegappan@yahoo.com>
Sat, 27 Feb 2021 15:28:19 +0000 (07:28 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Sat, 27 Feb 2021 15:28:19 +0000 (07:28 -0800)
autoload/handlers.vim

index a81ed7141c4111b357f7fa4607781617f2e62e91..923e2f3197441bd935264e50a542a45d34d525d1 100644 (file)
@@ -279,7 +279,7 @@ def s:processHoverReply(lspserver: dict<any>, req: dict<any>, reply: dict<any>):
       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