Replacing copilot.vim with copilot.lua with cmp integration

This commit is contained in:
2024-02-28 14:46:18 +01:00
parent 948039bfb6
commit faeb00736b
4 changed files with 19 additions and 15 deletions

View File

@@ -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,
}