diff --git a/lua/config/options.lua b/lua/config/options.lua index 44f0424..8e063fe 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -31,6 +31,8 @@ vim.g.usemusic = false ---@type boolean Options: vim.g.usehardtime = false ---@type boolean Options: -- Enable Image plugin on compatible terminals vim.g.useimage = true ---@type boolean Options: +-- Enable LazyGit plugin +vim.g.uselazygit = true ---@type boolean Options: -- Ignore missing lazy.nvim plugin manager vim.g.ignore_no_lazy = false ---@type boolean Options: -- Enable codesnap for code screenshots @@ -57,6 +59,8 @@ vim.g.aitool = "neocodeium" ---@type string Options: [ai tool] -- │ from the list  │  minuet -- │ │  ollama -- ╰───────────────────────────╯  none +-- Enable ChatGPT plugin for AI chat +vim.g.usechatgpt = false ---@type boolean Options: -- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STATUS COLUMN ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ vim.g.statuscolumn = "native" ---@type string Options: [statuscolumn] diff --git a/lua/data/cond.lua b/lua/data/cond.lua index 59dfb0c..c1ff815 100644 --- a/lua/data/cond.lua +++ b/lua/data/cond.lua @@ -25,6 +25,10 @@ M.barsNlines = function() return false end +M.chatgpt = function() + return func.check_global_var("usechatgpt", true, false) +end + --- Codeium conditional options M.codeium = function() return func.check_global_var("aitool", "codeium", "neocodeium") diff --git a/lua/plugins/ai.lua b/lua/plugins/ai.lua index 17df178..d29ca0b 100644 --- a/lua/plugins/ai.lua +++ b/lua/plugins/ai.lua @@ -34,6 +34,7 @@ return { { -- ChatGPT "jackMort/ChatGPT.nvim", event = "VeryLazy", + enabled = data.cond.chatgpt, keys = data.keys.chatgpt.func, opts = data.types.chatgpt, dependencies = data.deps.chatgpt,