Skip to content

Commit

Permalink
fix: accept grabbing wrong config
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Nov 27, 2024
1 parent cab7576 commit 3dcf98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/blink/cmp/completion/accept/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ local function accept(ctx, item, callback)
-- Create an undo point, if it's not a snippet, since the snippet engine should handle undo
if
item.insertTextFormat ~= vim.lsp.protocol.InsertTextFormat.Snippet
and require('blink.cmp.config').accept.create_undo_point
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)
end
Expand Down

0 comments on commit 3dcf98d

Please sign in to comment.