mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(copliot): restructure copilot-cmp spec
This commit is contained in:
parent
bdc865b291
commit
34d2bdcac6
1 changed files with 51 additions and 49 deletions
|
@ -58,6 +58,8 @@ return {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
vim.g.ai_cmp
|
||||||
|
and {
|
||||||
-- copilot cmp source
|
-- copilot cmp source
|
||||||
{
|
{
|
||||||
"nvim-cmp",
|
"nvim-cmp",
|
||||||
|
@ -65,7 +67,6 @@ return {
|
||||||
dependencies = { -- this will only be evaluated if nvim-cmp is enabled
|
dependencies = { -- this will only be evaluated if nvim-cmp is enabled
|
||||||
{
|
{
|
||||||
"zbirenbaum/copilot-cmp",
|
"zbirenbaum/copilot-cmp",
|
||||||
enabled = vim.g.ai_cmp, -- only enable if wanted
|
|
||||||
opts = {},
|
opts = {},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
local copilot_cmp = require("copilot_cmp")
|
local copilot_cmp = require("copilot_cmp")
|
||||||
|
@ -93,8 +94,7 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
vim.g.ai_cmp and {
|
|
||||||
"saghen/blink.cmp",
|
"saghen/blink.cmp",
|
||||||
optional = true,
|
optional = true,
|
||||||
dependencies = { "giuxtaposition/blink-cmp-copilot" },
|
dependencies = { "giuxtaposition/blink-cmp-copilot" },
|
||||||
|
@ -110,5 +110,7 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
} or nil,
|
},
|
||||||
|
}
|
||||||
|
or nil,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue