mirror of
https://github.com/danielepintore/dotfiles.git
synced 2026-07-03 12:35:14 +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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user