feat(copilot): added support for blink.cmp source

This commit is contained in:
Folke Lemaitre 2024-11-13 18:28:58 +01:00
parent c1e8e3c80d
commit a7eca05609
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -97,14 +97,25 @@ return {
{
"saghen/blink.cmp",
optional = true,
opts = {
windows = { ghost_text = { enabled = false } },
},
specs = {
-- blink has no copilot source, so force enable suggestions
dependencies = {
{
"zbirenbaum/copilot.lua",
opts = { suggestion = { enabled = true } },
"giuxtaposition/blink-cmp-copilot",
enabled = vim.g.ai_cmp, -- only enable if needed
specs = {
{
"blink.cmp",
opts = {
sources = {
providers = {
copilot = { name = "copilot", module = "blink-cmp-copilot" },
},
completion = {
enabled_providers = { "copilot" },
},
},
},
},
},
},
},
},