mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 04:21:03 +00:00
Add copilot
This commit is contained in:
parent
a48af40c68
commit
d0940f2b4d
1 changed files with 16 additions and 0 deletions
|
|
@ -39,6 +39,20 @@ return {
|
|||
"hrsh7th/cmp-path", -- Path completions
|
||||
"hrsh7th/cmp-cmdline", -- Cmdline completions
|
||||
"saadparwaiz1/cmp_luasnip", -- Snippet completions
|
||||
{
|
||||
"zbirenbaum/copilot.lua",
|
||||
cmd = "Copilot",
|
||||
build = ":Copilot auth",
|
||||
opts = {
|
||||
suggestion = { enabled = false },
|
||||
panel = { enabled = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
"zbirenbaum/copilot-cmp",
|
||||
dependencies = "copilot.lua",
|
||||
opts = {},
|
||||
},
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
version = "v2.*",
|
||||
|
|
@ -96,6 +110,7 @@ return {
|
|||
end, { "i", "s" }),
|
||||
}),
|
||||
sources = cmp.config.sources({
|
||||
{ name = "copilot" },
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "luasnip" },
|
||||
{ name = "buffer" },
|
||||
|
|
@ -111,6 +126,7 @@ return {
|
|||
nvim_lsp = "[LSP]",
|
||||
luasnip = "[Snippet]",
|
||||
path = "[Path]",
|
||||
copilot = "[Copilot]",
|
||||
})[entry.source.name]
|
||||
return vim_item
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue