Skip to content

Commit f99bf6b

Browse files
ccbhjBingjia Chen
and
Bingjia Chen
authored
fix: documentation of snippet cannot be shown when description is list (#92)
Co-authored-by: Bingjia Chen <[email protected]>
1 parent 8c2cb2e commit f99bf6b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/blink/cmp/sources/snippets/utils.lua

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ function utils.read_snippet(snippet, fallback)
2222
local prefix = snippet.prefix or fallback
2323
local description = snippet.description or fallback
2424
local body = snippet.body
25+
26+
if type(description) == "table" then
27+
description = vim.fn.join(description)
28+
end
29+
2530
if type(prefix) == 'table' then
2631
for _, p in ipairs(prefix) do
2732
snippets[p] = {

0 commit comments

Comments
 (0)