diff --git a/lua/care/menu/init.lua b/lua/care/menu/init.lua index 0aaec79..fde7f20 100644 --- a/lua/care/menu/init.lua +++ b/lua/care/menu/init.lua @@ -59,7 +59,9 @@ function Menu:draw_docs(entry) format = "plaintext" contents = vim.split(documentation.value or "", "\n", { trimempty = true }) else - contents = vim.lsp.util.convert_input_to_markdown_lines(documentation --[[@as string]]) + contents = vim.lsp.util.convert_input_to_markdown_lines( + (type(documentation) == "table" and (documentation.value or "")) or (documentation or "") --[[@as string]] + ) end if completion_item.detail and completion_item.detail ~= "" then