From 2adc8d6286b69f7e543da002d14ffdeeb5b400e7 Mon Sep 17 00:00:00 2001 From: rootiest Date: Sun, 6 Oct 2024 02:20:16 -0400 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20=20Refactoring(ai-tools):?= =?UTF-8?q?=20use=20cond=20instead=20of=20enabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the `cond` option instead of `enabled` for ai-tool plugins so they won't be tagged for removal when disabled --- lua/plugins/ai.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/plugins/ai.lua b/lua/plugins/ai.lua index 4e17dd9..27b62f1 100644 --- a/lua/plugins/ai.lua +++ b/lua/plugins/ai.lua @@ -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,