From 049e323714a56200e220384a2fe618b5bff631d2 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 12 May 2023 17:01:10 +0200 Subject: [PATCH] fix(copilot): removed special handling of copilot in cmp. no longer needed --- lua/lazyvim/plugins/extras/coding/copilot.lua | 15 --------------- 1 file changed, 15 deletions(-) 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 = {