diff --git a/lua/blink/cmp/completion/accept/init.lua b/lua/blink/cmp/completion/accept/init.lua index ec834fd5..0c6b74a4 100644 --- a/lua/blink/cmp/completion/accept/init.lua +++ b/lua/blink/cmp/completion/accept/init.lua @@ -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('u', true, true, true), 'n', true)