return { "yetone/avante.nvim", event = "VeryLazy", version = false, ---@module 'avante' ---@type avante.Config opts = { instructions_file = "avante.md", mode = "agentic", provider = "z.ai/glm-4.6", providers = { ["deepseek/coder"] = { __inherited_from = "openai", api_key_name = "DEEPSEEK_API_KEY", endpoint = "https://api.deepseek.com", model = "deepseek-coder", }, ["deepseek/v4pro"] = { __inherited_from = "openai", api_key_name = "DEEPSEEK_API_KEY", endpoint = "https://api.deepseek.com", model = "deepseek-v4-pro", }, ["z.ai/glm-4.6"] = { __inherited_from = "openai", api_key_name = "Z_API_KEY", endpoint = "https://api.z.ai/api/coding/paas/v4", model = "glm-4.6", }, }, behaviour = { auto_suggestions = false, enable_fastapply = false, auto_set_highlight_group = true, auto_set_keymaps = true, auto_apply_diff_after_generation = false, support_paste_from_clipboard = false, minimize_diff = true, -- Whether to remove unchanged lines when applying a code block enable_token_counting = true, -- Whether to enable token counting. Default to true. auto_add_current_file = true, -- Whether to automatically add the current file when opening a new chat. Default to true. auto_approve_tool_permissions = false, -- Examples: -- auto_approve_tool_permissions = false, -- Show permission prompts for all tools -- auto_approve_tool_permissions = {"bash", "str_replace"}, -- Auto-approve specific tools only ---@type "popup" | "inline_buttons" confirmation_ui_style = "inline_buttons", --- Whether to automatically open files and navigate to lines when ACP agent makes edits ---@type boolean acp_follow_agent_locations = true, }, windows = {}, acp_providers = {}, rules = {}, }, dependencies = { "nvim-lua/plenary.nvim", "stevearc/dressing.nvim", -- for input provider dressing "folke/snacks.nvim", -- for input provider snacks "MunifTanjim/nui.nvim", { "MeanderingProgrammer/render-markdown.nvim", opts = { file_types = { "markdown", "Avante" }, }, ft = { "markdown", "Avante" }, }, }, }