feat(ai): conditionally enable ChatGPT plugin
This commit is contained in:
@@ -31,6 +31,8 @@ vim.g.usemusic = false ---@type boolean Options: <true|false>
|
|||||||
vim.g.usehardtime = false ---@type boolean Options: <true|false>
|
vim.g.usehardtime = false ---@type boolean Options: <true|false>
|
||||||
-- Enable Image plugin on compatible terminals
|
-- Enable Image plugin on compatible terminals
|
||||||
vim.g.useimage = true ---@type boolean Options: <true|false>
|
vim.g.useimage = true ---@type boolean Options: <true|false>
|
||||||
|
-- Enable LazyGit plugin
|
||||||
|
vim.g.uselazygit = true ---@type boolean Options: <true|false>
|
||||||
-- Ignore missing lazy.nvim plugin manager
|
-- Ignore missing lazy.nvim plugin manager
|
||||||
vim.g.ignore_no_lazy = false ---@type boolean Options: <true|false>
|
vim.g.ignore_no_lazy = false ---@type boolean Options: <true|false>
|
||||||
-- Enable codesnap for code screenshots
|
-- Enable codesnap for code screenshots
|
||||||
@@ -57,6 +59,8 @@ vim.g.aitool = "neocodeium" ---@type string Options: [ai tool]
|
|||||||
-- │ from the list │ minuet
|
-- │ from the list │ minuet
|
||||||
-- │ │ ollama
|
-- │ │ ollama
|
||||||
-- ╰───────────────────────────╯ none
|
-- ╰───────────────────────────╯ none
|
||||||
|
-- Enable ChatGPT plugin for AI chat
|
||||||
|
vim.g.usechatgpt = false ---@type boolean Options: <true|false>
|
||||||
|
|
||||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STATUS COLUMN ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STATUS COLUMN ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||||
vim.g.statuscolumn = "native" ---@type string Options: [statuscolumn]
|
vim.g.statuscolumn = "native" ---@type string Options: [statuscolumn]
|
||||||
|
|||||||
@@ -25,6 +25,10 @@ M.barsNlines = function()
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
M.chatgpt = function()
|
||||||
|
return func.check_global_var("usechatgpt", true, false)
|
||||||
|
end
|
||||||
|
|
||||||
--- Codeium conditional options
|
--- Codeium conditional options
|
||||||
M.codeium = function()
|
M.codeium = function()
|
||||||
return func.check_global_var("aitool", "codeium", "neocodeium")
|
return func.check_global_var("aitool", "codeium", "neocodeium")
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ return {
|
|||||||
{ -- ChatGPT
|
{ -- ChatGPT
|
||||||
"jackMort/ChatGPT.nvim",
|
"jackMort/ChatGPT.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
|
enabled = data.cond.chatgpt,
|
||||||
keys = data.keys.chatgpt.func,
|
keys = data.keys.chatgpt.func,
|
||||||
opts = data.types.chatgpt,
|
opts = data.types.chatgpt,
|
||||||
dependencies = data.deps.chatgpt,
|
dependencies = data.deps.chatgpt,
|
||||||
|
|||||||
Reference in New Issue
Block a user