diff --git a/lua/lazyvim/plugins/extras/coding/copilot.lua b/lua/lazyvim/plugins/extras/coding/copilot.lua index 204df921..c9b46ebf 100644 --- a/lua/lazyvim/plugins/extras/coding/copilot.lua +++ b/lua/lazyvim/plugins/extras/coding/copilot.lua @@ -66,21 +66,6 @@ return { table.insert(opts.sources, 1, { name = "copilot", group_index = 2 }) - local confirm = opts.mapping[""] - local confirm_copilot = cmp.mapping.confirm({ - select = true, - behavior = cmp.ConfirmBehavior.Replace, - }) - - opts.mapping = vim.tbl_extend("force", opts.mapping, { - [""] = function(...) - local entry = cmp.get_selected_entry() - if entry and entry.source.name == "copilot" then - return confirm_copilot(...) - end - return confirm(...) - end, - }) opts.sorting = { priority_weight = 2, comparators = {