]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Update handlers.vim
authorDayvid <115833146+D4yvid@users.noreply.github.com>
Wed, 26 Oct 2022 20:06:35 +0000 (17:06 -0300)
committerGitHub <noreply@github.com>
Wed, 26 Oct 2022 20:06:35 +0000 (17:06 -0300)
autoload/lsp/handlers.vim

index 3215276fb861309c08083d073569079a4f92211f..4da87f5f0eca0e4de3ebd42f8aae4e297ac74457 100644 (file)
@@ -127,9 +127,7 @@ def ProcessCompletionReply(lspserver: dict<any>, req: dict<any>, reply: dict<any
         # Solve a issue where if a server send a detail field
         # with a "\n", on the menu will be everything joined with
         # a "^@" separating it. (example: clangd)
-        var splitted_detail = split(item.detail, "\n")
-
-        d.menu = splitted_detail[0]
+        d.menu = item.detail->split("\n")[0]
       endif
       if item->has_key('documentation')
         if item.documentation->type() == v:t_string && item.documentation != ''