Skip to content

Commit a6cf72a

Browse files
committed
fix: snippet source markdown generation
1 parent 1ad59aa commit a6cf72a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/blink/cmp/sources/snippets/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function snippets:resolve(item, callback)
4848
local snippet = parsed_snippet and tostring(parsed_snippet) or item.insertText
4949

5050
-- TODO: ideally context is passed with the filetype
51-
local documentation = '```' .. vim.bo.filetype .. '\n' .. snippet .. '```' .. '\n---\n' .. item.description
51+
local documentation = '```' .. vim.bo.filetype .. '\n' .. snippet .. '\n```' .. '\n---\n' .. item.description
5252

5353
local resolved_item = vim.deepcopy(item)
5454
resolved_item.documentation = {

0 commit comments

Comments
 (0)