Files
config-nvim/lua/plugins/avante_202605.lua

89 lines
2.7 KiB
Lua
Raw Normal View History

2025-05-08 23:33:59 -07:00
return {
"yetone/avante.nvim",
2025-07-02 23:29:23 -07:00
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
-- ⚠️ must add this setting! ! !
2026-04-11 00:25:34 -07:00
build = vim.fn.has("win32") ~= 0 and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
or "make",
2025-05-08 23:33:59 -07:00
event = "VeryLazy",
version = false, -- Never set this value to "*"! Never!
2025-07-02 23:29:23 -07:00
---@module 'avante'
---@type avante.Config
2025-05-08 23:33:59 -07:00
opts = {
-- add any opts here
2026-04-11 00:25:34 -07:00
-- this file can contain specific instructions for your project
instructions_file = "avante.md",
2025-05-08 23:33:59 -07:00
-- for example
2026-04-11 00:25:34 -07:00
2025-07-02 23:29:23 -07:00
provider = "deepseek",
providers = {
deepseek = {
__inherited_from = "openai",
api_key_name = "DEEPSEEK_API_KEY",
endpoint = "https://api.deepseek.com",
2026-04-24 11:55:56 -07:00
-- model = "deepseek-chat", ds claims this endpoint is maximally compatible but being deprecated eventually
model = "deepseek-v4-flash",
2025-07-02 23:29:23 -07:00
disable_tools = false,
extra_request_body = {
["thinking"] = {
["type"] = "disabled",
},
},
2025-07-02 23:29:23 -07:00
},
2026-04-24 11:55:56 -07:00
deepseek_v4 = {
__inherited_from = "openai",
api_key_name = "DEEPSEEK_API_KEY",
endpoint = "https://api.deepseek.com",
model = "deepseek-v4-pro",
disable_tools = false,
timeout = 30000,
extra_request_body = {
["thinking"] = {
["type"] = "disabled",
},
},
},
2025-07-02 23:29:23 -07:00
},
2025-07-03 05:32:24 -07:00
web_search_engine = {
provider = "brave",
},
2025-05-08 23:33:59 -07:00
},
dependencies = {
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
--- The below dependencies are optional,
2026-04-11 00:25:34 -07:00
"nvim-mini/mini.pick", -- for file_selector provider mini.pick
2025-05-08 23:33:59 -07:00
"nvim-telescope/telescope.nvim", -- for file_selector provider telescope
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
"ibhagwan/fzf-lua", -- for file_selector provider fzf
2025-07-02 23:29:23 -07:00
"stevearc/dressing.nvim", -- for input provider dressing
"folke/snacks.nvim", -- for input provider snacks
2025-05-08 23:33:59 -07:00
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
"zbirenbaum/copilot.lua", -- for providers='copilot'
{
-- support for image pasting
"HakonHarnes/img-clip.nvim",
event = "VeryLazy",
opts = {
-- recommended settings
default = {
embed_image_as_base64 = false,
prompt_for_file_name = false,
drag_and_drop = {
insert_mode = true,
},
-- required for Windows users
use_absolute_path = true,
},
},
},
{
-- Make sure to set this up properly if you have lazy=true
"MeanderingProgrammer/render-markdown.nvim",
opts = {
file_types = { "markdown", "Avante" },
},
ft = { "markdown", "Avante" },
},
},
}