fix(copliot): restructure copilot-cmp spec
This commit is contained in:
@ -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,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user