autoload/lsp/handlers.vim | 4 +--- diff --git a/autoload/lsp/handlers.vim b/autoload/lsp/handlers.vim index 3215276fb861309c08083d073569079a4f92211f..4da87f5f0eca0e4de3ebd42f8aae4e297ac74457 100644 --- a/autoload/lsp/handlers.vim +++ b/autoload/lsp/handlers.vim @@ -127,9 +127,7 @@ if item->has_key('detail') # 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 != ''