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,
|
||||
},
|
||||
|
||||
vim.g.ai_cmp
|
||||
and {
|
||||
-- copilot cmp source
|
||||
{
|
||||
"nvim-cmp",
|
||||
|
@ -65,7 +67,6 @@ return {
|
|||
dependencies = { -- this will only be evaluated if nvim-cmp is enabled
|
||||
{
|
||||
"zbirenbaum/copilot-cmp",
|
||||
enabled = vim.g.ai_cmp, -- only enable if wanted
|
||||
opts = {},
|
||||
config = function(_, opts)
|
||||
local copilot_cmp = require("copilot_cmp")
|
||||
|
@ -93,8 +94,7 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
|
||||
vim.g.ai_cmp and {
|
||||
{
|
||||
"saghen/blink.cmp",
|
||||
optional = true,
|
||||
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