mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(extras): don't make AI plugins dependencies of completion plugins
This commit is contained in:
parent
d1529f650f
commit
ff11029cc0
4 changed files with 10 additions and 8 deletions
|
|
@ -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" },
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue