Skip to content

Commit

Permalink
fix: stringify parsed snippet when ignoring snippet format
Browse files Browse the repository at this point in the history
Closes #944
  • Loading branch information
Saghen committed Jan 8, 2025
1 parent c052d01 commit 80945db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/blink/cmp/completion/accept/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ local function accept(ctx, item, callback)
and parsed_snippet.data.children[1].type == vim.lsp._snippet_grammar.NodeType.Text
then
item.insertTextFormat = vim.lsp.protocol.InsertTextFormat.PlainText
item.textEdit.newText = tostring(parsed_snippet)
end
end

Expand Down

0 comments on commit 80945db

Please sign in to comment.