Add Copilot incl. auto-completion an chat

This commit is contained in:
Fabian Missbrenner 2025-03-12 17:36:05 +01:00
parent 3569e4ec8e
commit 1700a7c450
3 changed files with 47 additions and 7 deletions

View file

@ -0,0 +1,32 @@
return {
{
'zbirenbaum/copilot.lua',
cmd = 'Copilot',
event = 'InsertEnter',
config = function()
require('copilot').setup {
suggestion = { enabled = false },
panel = { enabled = false },
}
end,
},
{
'zbirenbaum/copilot-cmp',
dependencies = { 'copilot.lua' },
config = function()
require('copilot_cmp').setup()
end,
},
{
'CopilotC-Nvim/CopilotChat.nvim',
dependencies = {
{ 'zbirenbaum/copilot.lua' }, -- or github/copilot.vim
{ 'nvim-lua/plenary.nvim', branch = 'master' }, -- for curl, log and async functions
},
-- build = "make tiktoken", -- Only on MacOS or Linux
opts = {
-- See Configuration section for options
},
-- See Commands section for default commands if you want to lazy load on them
},
}