Remove now uneeded copilot plugin hack

This commit is contained in:
Tyler Hallada 2023-12-01 15:26:01 -05:00
parent e568558b9c
commit 5e8b4f8284
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
require('copilot').setup({
suggestion = { enabled = true },
panel = { enabled = true },
suggestion = { enabled = false },
panel = { enabled = false },
});

View File

@ -27,7 +27,7 @@ cmp.setup({
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({ select = true, behavior = cmp.ConfirmBehavior.Replace }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() and has_words_before() then
cmp.select_next_item({ behavior = cmp.SelectBehavior.Select })