diff --git a/README.md b/README.md index 21ca5d0..bcc15dd 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ used to configure user options. - `.aitool` : **Set the AI tool** This file defines the AI plugin used for code completion. - The options are `codeium` `copilot` `tabnine` or `none`. + The options are `codeium` `copilot` `tabnine` `minuet` or `none`. - `.wakatime` : **Enables WakaTime** This file defines whether the WakaTime plugin is enabled. diff --git a/lua/plugins/coding.lua b/lua/plugins/coding.lua index c1a9628..54a961b 100644 --- a/lua/plugins/coding.lua +++ b/lua/plugins/coding.lua @@ -36,6 +36,21 @@ return { end end, }, + { + "milanglacier/minuet-ai.nvim", + dependencies = { { "nvim-lua/plenary.nvim" }, { "hrsh7th/nvim-cmp" } }, + config = function() + require("minuet").setup({ provider = "openai" }) + end, + cond = function() + if + vim.fn.readfile(vim.fn.stdpath("config") .. "/.aitool")[1] + == "minuet" + then + return true + end + end, + }, { import = "lazyvim.plugins.extras.coding.yanky" }, { import = "lazyvim.plugins.extras.coding.mini-surround" }, { import = "lazyvim.plugins.extras.vscode" },