refactored plugins and configurations
This commit is contained in:
@@ -3,11 +3,12 @@
|
||||
-- API keys via environment variables:
|
||||
-- ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY
|
||||
-- Or scoped: AVANTE_ANTHROPIC_API_KEY, AVANTE_OPENAI_API_KEY, etc.
|
||||
--
|
||||
-- Switch provider at runtime with: :AvanteSwitchProvider claude|openai|gemini|copilot|ollama
|
||||
|
||||
return {
|
||||
{
|
||||
"yetone/avante.nvim",
|
||||
event = "VeryLazy",
|
||||
version = false, -- Never set to "*"
|
||||
build = "make",
|
||||
dependencies = {
|
||||
@@ -39,6 +40,18 @@ return {
|
||||
ft = { "markdown", "Avante" },
|
||||
},
|
||||
},
|
||||
cmd = {
|
||||
"AvanteAsk",
|
||||
"AvanteChat",
|
||||
"AvanteToggle",
|
||||
"AvanteEdit",
|
||||
"AvanteRefresh",
|
||||
"AvanteBuild",
|
||||
"AvanteSwitchProvider",
|
||||
"AvanteShowRepoMap",
|
||||
"AvanteClear",
|
||||
"AvanteFocus",
|
||||
},
|
||||
---@module 'avante'
|
||||
---@type avante.Config
|
||||
opts = {
|
||||
@@ -67,7 +80,7 @@ return {
|
||||
},
|
||||
},
|
||||
azure = {
|
||||
endpoint = "", -- e.g., "https://<resource>.openai.azure.com"
|
||||
endpoint = "", -- e.g., "https://<resource>.openai.azure.com"
|
||||
deployment = "", -- Azure deployment name
|
||||
api_version = "2024-12-01-preview",
|
||||
timeout = 30000,
|
||||
@@ -193,21 +206,4 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
-- {
|
||||
-- "zbirenbaum/copilot.lua",
|
||||
-- cmd = "Copilot",
|
||||
-- event = "InsertEnter",
|
||||
-- opts = {
|
||||
-- suggestion = {
|
||||
-- enabled = true,
|
||||
-- auto_trigger = true,
|
||||
-- keymap = {
|
||||
-- accept = "<C-l>",
|
||||
-- next = "<C-n>",
|
||||
-- prev = "<C-p>",
|
||||
-- },
|
||||
-- },
|
||||
-- panel = { enabled = false },
|
||||
-- },
|
||||
-- }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user