mirror of
https://github.com/danielepintore/dotfiles.git
synced 2026-07-25 13:55:13 +02:00
Replacing copilot.vim with copilot.lua with cmp integration
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
return {
|
||||
{ 'github/copilot.vim',
|
||||
config = function ()
|
||||
-- Disable copilot by default
|
||||
vim.g.copilot_enabled = false
|
||||
end
|
||||
}
|
||||
"zbirenbaum/copilot-cmp",
|
||||
cmd = "Copilot",
|
||||
event = "InsertEnter",
|
||||
dependencies = {
|
||||
'zbirenbaum/copilot.lua',
|
||||
},
|
||||
config = function()
|
||||
-- Disable inline suggestions and panel
|
||||
require('copilot').setup({
|
||||
suggestion = { enabled = false },
|
||||
panel = { enabled = false },
|
||||
})
|
||||
-- enable suggesions via cmp panel
|
||||
require('copilot_cmp').setup({})
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -128,6 +128,8 @@ return {
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'luasnip' }, -- For luasnip users.
|
||||
-- Copilot Source
|
||||
{ name = "copilot", group_index = 2 },
|
||||
},
|
||||
{
|
||||
{ name = 'buffer' },
|
||||
|
||||
Reference in New Issue
Block a user