Skip to content

Commit

Permalink
fix: add back, skip undo point for snippet kinds
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Dec 18, 2024
1 parent 02051bf commit 1563079
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 @@ -31,6 +31,7 @@ local function accept(ctx, item, callback)
if
ctx.mode == 'default'
and item.insertTextFormat ~= vim.lsp.protocol.InsertTextFormat.Snippet
and item.kind ~= require('blink.cmp.types').CompletionItemKind.Snippet
and require('blink.cmp.config').completion.accept.create_undo_point
then
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes('<C-g>u', true, true, true), 'n', true)
Expand Down

0 comments on commit 1563079

Please sign in to comment.