copilot
This commit is contained in:
parent
be7f6e0253
commit
46e8cd31cf
20
init.lua
20
init.lua
|
@ -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' },
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue