Skip to content

Commit

Permalink
fix: snippet source markdown generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Oct 10, 2024
1 parent 1ad59aa commit a6cf72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/blink/cmp/sources/snippets/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function snippets:resolve(item, callback)
local snippet = parsed_snippet and tostring(parsed_snippet) or item.insertText

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

local resolved_item = vim.deepcopy(item)
resolved_item.documentation = {
Expand Down

0 comments on commit a6cf72a

Please sign in to comment.