From 15630796fc8c3c45c345d2fe73de6b3a1dc9bb11 Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Wed, 18 Dec 2024 11:48:58 -0500 Subject: [PATCH] fix: add back, skip undo point for snippet kinds --- lua/blink/cmp/completion/accept/init.lua | 1 + 1 file changed, 1 insertion(+) 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)