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 { return {
{
"hrsh7th/nvim-cmp", "hrsh7th/nvim-cmp",
-- load cmp on InsertEnter -- load cmp on InsertEnter
event = "InsertEnter", event = "InsertEnter",
@ -47,8 +48,8 @@ return {
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = 'nvim_lsp' }, { name = 'nvim_lsp' },
{ name = 'vsnip' }, { name = 'vsnip' },
{ name = "copilot"}, { name = "copilot" },
},{ }, {
{ name = 'buffer' }, { name = 'buffer' },
--{ name = 'path' }, --{ name = 'path' },
}), }),
@ -62,4 +63,20 @@ return {
}, },
}) })
end, 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', 'folke/lsp-colors.nvim',
'nvim-lua/popup.nvim', 'nvim-lua/popup.nvim',
'zbirenbaum/copilot.lua',
{'zbirenbaum/copilot-cmp',
dependencies = { "hrsh7th/nvim-cmp" },
},
'junegunn/vim-easy-align', 'junegunn/vim-easy-align',
'machakann/vim-highlightedyank', 'machakann/vim-highlightedyank',
'vim-airline/vim-airline', '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()