We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6cf72a commit 588e4d4Copy full SHA for 588e4d4
lua/blink/cmp/windows/documentation.lua
@@ -54,8 +54,16 @@ function docs.show_item(item)
54
return
55
end
56
57
- local doc = type(item.documentation) == 'string' and item.documentation or item.documentation.value
58
local doc_lines = {}
+ if item.detail and item.detail ~= '' then
59
+ table.insert(doc_lines, '```'..vim.bo.filetype)
60
+ for s in item.detail:gmatch('[^\r\n]+') do
61
+ table.insert(doc_lines, s)
62
+ end
63
+ table.insert(doc_lines, '```')
64
65
+
66
+ local doc = type(item.documentation) == 'string' and item.documentation or item.documentation.value
67
for s in doc:gmatch('[^\r\n]+') do
68
table.insert(doc_lines, s)
69
0 commit comments