fix(copilot): don't enable blink when using copilot when blink is not installed. Fixes #4795

This commit is contained in:
Folke Lemaitre 2024-11-15 06:25:26 +01:00
parent ad3e2b6354
commit 07a046867d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -79,6 +79,7 @@ return {
specs = { specs = {
{ {
"nvim-cmp", "nvim-cmp",
optional = true,
---@param opts cmp.ConfigSchema ---@param opts cmp.ConfigSchema
opts = function(_, opts) opts = function(_, opts)
table.insert(opts.sources, 1, { table.insert(opts.sources, 1, {
@ -104,6 +105,7 @@ return {
specs = { specs = {
{ {
"blink.cmp", "blink.cmp",
optional = true,
opts = { opts = {
sources = { sources = {
providers = { providers = {