feat(extras): don't make AI plugins dependencies of completion plugins

This commit is contained in:
Daniel Wennberg 2025-01-14 12:46:38 -08:00
parent d1529f650f
commit ff11029cc0
4 changed files with 10 additions and 8 deletions

View file

@ -37,7 +37,6 @@ return {
{
"hrsh7th/nvim-cmp",
optional = true,
dependencies = { "codeium.nvim" },
opts = function(_, opts)
table.insert(opts.sources, 1, {
name = "codeium",
@ -59,7 +58,7 @@ return {
vim.g.ai_cmp and {
"saghen/blink.cmp",
optional = true,
dependencies = { "codeium.nvim", "saghen/blink.compat" },
dependencies = { "saghen/blink.compat" },
opts = {
sources = {
compat = { "codeium" },

View file

@ -64,7 +64,7 @@ return {
{
"hrsh7th/nvim-cmp",
optional = true,
dependencies = { -- this will only be evaluated if nvim-cmp is enabled
specs = { -- this will only be evaluated if nvim-cmp and copilot-cmp are enabled
{
"zbirenbaum/copilot-cmp",
opts = {},
@ -97,7 +97,12 @@ return {
{
"saghen/blink.cmp",
optional = true,
dependencies = { "giuxtaposition/blink-cmp-copilot" },
specs = {
{
"zbirenbaum/copilot-cmp",
dependencies = { "giuxtaposition/blink-cmp-copilot" },
},
},
opts = {
sources = {
default = { "copilot" },

View file

@ -37,7 +37,6 @@ return {
{
"hrsh7th/nvim-cmp",
optional = true,
dependencies = { "supermaven-nvim" },
opts = function(_, opts)
if vim.g.ai_cmp then
table.insert(opts.sources, 1, {
@ -52,7 +51,7 @@ return {
vim.g.ai_cmp and {
"saghen/blink.cmp",
optional = true,
dependencies = { "supermaven-nvim", "saghen/blink.compat" },
dependencies = { "saghen/blink.compat" },
opts = {
sources = {
compat = { "supermaven" },

View file

@ -16,7 +16,6 @@ return {
{
"hrsh7th/nvim-cmp",
optional = true,
dependencies = { "tzachar/cmp-tabnine" },
---@param opts cmp.ConfigSchema
opts = function(_, opts)
table.insert(opts.sources, 1, {
@ -37,7 +36,7 @@ return {
{
"saghen/blink.cmp",
optional = true,
dependencies = { "tzachar/cmp-tabnine", "saghen/blink.compat" },
dependencies = { "saghen/blink.compat" },
opts = {
sources = {
compat = { "cmp_tabnine" },