configure copilot

This commit is contained in:
Ray Elliott 2025-12-07 22:03:35 +00:00
commit c47afa2471
4 changed files with 43 additions and 10 deletions

22
lua/plugins/copilot.lua Normal file
View file

@ -0,0 +1,22 @@
-- GitHub Copilot: AI-powered code completion
return {
{
'zbirenbaum/copilot.lua',
cmd = 'Copilot',
event = 'InsertEnter', -- Lazy load on first insert mode entry
opts = {
suggestion = { enabled = false }, -- Disable inline suggestions (use cmp instead)
panel = { enabled = false }, -- Disable panel (use cmp instead)
filetypes = {
['*'] = true, -- Enable for all filetypes
},
},
},
{
'zbirenbaum/copilot-cmp',
dependencies = { 'zbirenbaum/copilot.lua' },
config = function()
require('copilot_cmp').setup()
end,
},
}