♻️ Refactoring(ai-tools): use cond instead of enabled

Use the `cond` option instead of `enabled` for ai-tool plugins so they won't be tagged for removal
when disabled
This commit is contained in:
2024-10-06 02:20:16 -04:00
parent 92c306fab6
commit 2adc8d6286
+5 -5
View File
@@ -11,7 +11,7 @@ return {
event = "VeryLazy",
opts = data.types.neocodeium.opts,
keys = data.keys.neocodeium,
enabled = data.cond.neocodeium,
cond = data.cond.neocodeium,
},
{ -- Codeium
import = "lazyvim.plugins.extras.coding.codeium",
@@ -29,26 +29,26 @@ return {
"milanglacier/minuet-ai.nvim",
dependencies = data.deps.minuet,
opts = { provider = "openai" },
enabled = data.cond.minuet,
cond = data.cond.minuet,
},
{ -- ChatGPT
"jackMort/ChatGPT.nvim",
event = "VeryLazy",
enabled = data.cond.chatgpt,
cond = data.cond.chatgpt,
keys = data.keys.chatgpt.func,
opts = data.types.chatgpt,
dependencies = data.deps.chatgpt,
},
{ -- GP
"robitx/gp.nvim",
enabled = data.cond.gp,
cond = data.cond.gp,
lazy = false,
opts = data.types.gp,
keys = data.keys.gp.func,
},
{ -- Avante
"yetone/avante.nvim",
enabled = data.cond.avante,
cond = data.cond.avante,
event = "VeryLazy",
lazy = false,
opts = data.types.avante,