remove double initialization of copilot
This commit is contained in:
parent
9605898edd
commit
94394fd3b4
|
@ -1,4 +1,5 @@
|
|||
return {
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
-- load cmp on InsertEnter
|
||||
event = "InsertEnter",
|
||||
|
@ -47,8 +48,8 @@ return {
|
|||
sources = cmp.config.sources({
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'vsnip' },
|
||||
{ name = "copilot"},
|
||||
},{
|
||||
{ name = "copilot" },
|
||||
}, {
|
||||
{ name = 'buffer' },
|
||||
--{ name = 'path' },
|
||||
}),
|
||||
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
require("copilot").setup({
|
||||
suggestion = { enabled = false },
|
||||
panel = { enabled = false },
|
||||
filetypes = {
|
||||
mail = false,
|
||||
}
|
||||
})
|
||||
require("copilot_cmp").setup()
|
Loading…
Reference in a new issue