cmp: add copilot as cmp source

This commit is contained in:
Matej Janezic 2023-03-23 23:07:09 +01:00
parent 1b8a4094d0
commit 75a7857913
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 16 additions and 5 deletions

View File

@ -17,7 +17,17 @@ return {
dependencies = {
'hrsh7th/cmp-nvim-lsp',
'L3MON4D3/LuaSnip',
'saadparwaiz1/cmp_luasnip'
'saadparwaiz1/cmp_luasnip',
{ -- copilot
'zbirenbaum/copilot.lua',
opts = { suggestion = { enabled = false }, panel = { enabled = false } }
},
{ -- copilot-cmp source
'zbirenbaum/copilot-cmp',
opts = { clear_after_cursor = true }
}
},
config = function()
@ -63,6 +73,7 @@ return {
sources = {
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
{ name = 'copilot' },
},
}
end