From ff71588f3b820570f8962522e80e8aef5aa06b09 Mon Sep 17 00:00:00 2001 From: uga-rosa Date: Sun, 28 Jan 2024 21:26:13 +0900 Subject: [PATCH] lsp.CompletionItem.documentation is string, not string[] close #61 --- lua/cmp_dictionary/source.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/cmp_dictionary/source.lua b/lua/cmp_dictionary/source.lua index f0b6fc7..318acb5 100644 --- a/lua/cmp_dictionary/source.lua +++ b/lua/cmp_dictionary/source.lua @@ -98,7 +98,7 @@ function source.resolve(_, item, callback) return c:gsub("${label}", item.label) end, opts.document.command) local result = util.system(command) - item.documentation = result + item.documentation = table.concat(result, "\n") end callback(item) end