This commit is contained in:
RafalChelstowski 2023-07-16 01:10:41 +02:00
parent be7f6e0253
commit 46e8cd31cf
1 changed files with 19 additions and 1 deletions

View File

@ -111,7 +111,24 @@ require('lazy').setup({
}, },
-- copilot -- copilot
-- { 'github/copilot.vim', opts = {} }, {
'zbirenbaum/copilot.lua',
opts = {
config = function ()
require("copilot").setup({
suggestion = { enabled = false },
panel = { enabled = false },
})
end,
}
},
{
"zbirenbaum/copilot-cmp",
config = function ()
require("copilot_cmp").setup()
end
},
-- Useful plugin to show you pending keybinds. -- Useful plugin to show you pending keybinds.
{ 'folke/which-key.nvim', opts = {} }, { 'folke/which-key.nvim', opts = {} },
@ -530,6 +547,7 @@ cmp.setup {
end, { 'i', 's' }), end, { 'i', 's' }),
}, },
sources = { sources = {
{ name = "copilot", group_index = 2 },
{ name = 'nvim_lsp' }, { name = 'nvim_lsp' },
{ name = 'luasnip' }, { name = 'luasnip' },
}, },