62 lines
1.6 KiB
Lua
62 lines
1.6 KiB
Lua
-- ai 助手套件
|
|
return {
|
|
"yetone/avante.nvim",
|
|
version = false,
|
|
lazy = true,
|
|
event = "VeryLazy",
|
|
opts = {
|
|
provider = "copilot",
|
|
ollama = {
|
|
model = "gemma3:4b",
|
|
endpoint = "http://127.0.0.1:11434",
|
|
timeout = 60000, -- Timeout in milliseconds
|
|
options = {
|
|
temperature = 0,
|
|
num_ctx = 10240,
|
|
keep_alive = "5m",
|
|
},
|
|
},
|
|
copilot = {
|
|
},
|
|
},
|
|
build = "make",
|
|
dependencies = {
|
|
"nvim-treesitter/nvim-treesitter",
|
|
"stevearc/dressing.nvim",
|
|
"nvim-lua/plenary.nvim",
|
|
"MunifTanjim/nui.nvim",
|
|
--- 以下依赖项是可选的,
|
|
"echasnovski/mini.pick", -- 用于文件选择器提供者 mini.pick
|
|
"nvim-telescope/telescope.nvim", -- 用于文件选择器提供者 telescope
|
|
"hrsh7th/nvim-cmp", -- avante 命令和提及的自动完成
|
|
"ibhagwan/fzf-lua", -- 用于文件选择器提供者 fzf
|
|
"nvim-tree/nvim-web-devicons", -- 或 echasnovski/mini.icons
|
|
"zbirenbaum/copilot.lua", -- 用于 providers='copilot'
|
|
{
|
|
-- 支持图像粘贴
|
|
"HakonHarnes/img-clip.nvim",
|
|
event = "VeryLazy",
|
|
opts = {
|
|
-- 推荐设置
|
|
default = {
|
|
embed_image_as_base64 = false,
|
|
prompt_for_file_name = false,
|
|
drag_and_drop = {
|
|
insert_mode = true,
|
|
},
|
|
-- Windows 用户必需
|
|
use_absolute_path = true,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
-- 如果您有 lazy=true,请确保正确设置
|
|
'MeanderingProgrammer/render-markdown.nvim',
|
|
opts = {
|
|
file_types = { "markdown", "Avante" },
|
|
},
|
|
ft = { "markdown", "Avante" },
|
|
},
|
|
},
|
|
}
|