remove double initialization of copilot

This commit is contained in:
Alexander Gehrke 2023-06-20 11:50:02 +02:00
parent 9605898edd
commit 94394fd3b4
3 changed files with 75 additions and 70 deletions

View file

@ -1,4 +1,5 @@
return {
{
"hrsh7th/nvim-cmp",
-- load cmp on InsertEnter
event = "InsertEnter",
@ -62,4 +63,20 @@ return {
},
})
end,
},
{
'zbirenbaum/copilot-cmp',
dependencies = { "hrsh7th/nvim-cmp",
{
'zbirenbaum/copilot.lua',
opts = {
suggestion = { enabled = false },
panel = { enabled = false },
filetypes = {
mail = false,
}
}
}
},
},
}

View file

@ -35,10 +35,6 @@ return {
'folke/lsp-colors.nvim',
'nvim-lua/popup.nvim',
'zbirenbaum/copilot.lua',
{'zbirenbaum/copilot-cmp',
dependencies = { "hrsh7th/nvim-cmp" },
},
'junegunn/vim-easy-align',
'machakann/vim-highlightedyank',
'vim-airline/vim-airline',

View file

@ -1,8 +0,0 @@
require("copilot").setup({
suggestion = { enabled = false },
panel = { enabled = false },
filetypes = {
mail = false,
}
})
require("copilot_cmp").setup()