LazyVim.LazyVim/lua/lazyvim/plugins/extras/ai/avante.lua

68 lines
2.1 KiB
Lua
Raw Normal View History

return {
{
"yetone/avante.nvim",
build = vim.fn.has("win32") ~= 0 and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
or "make",
event = "VeryLazy",
2025-06-23 11:48:18 -03:00
version = false,
opts = {
provider = "copilot",
hints = {
enabled = false,
},
},
2025-06-23 11:48:18 -03:00
dependencies = {
2025-08-10 18:46:44 -03:00
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
"zbirenbaum/copilot.lua",
{ "echasnovski/mini.pick", optional = true }, -- for file_selector provider mini.pick
{ "nvim-telescope/telescope.nvim", optional = true }, -- for file_selector provider telescope
{ "hrsh7th/nvim-cmp", optional = true }, -- autocompletion for avante commands and mentions
{ "ibhagwan/fzf-lua", optional = true }, -- for file_selector provider fzf
{ "stevearc/dressing.nvim", optional = true }, -- for input provider dressing
{ "folke/snacks.nvim", optional = true }, -- for input provider snacks
{ "nvim-tree/nvim-web-devicons", optional = true }, -- or echasnovski/mini.icons
2025-06-23 11:48:18 -03:00
{
-- support for image pasting
2025-06-23 11:48:18 -03:00
"HakonHarnes/img-clip.nvim",
event = "VeryLazy",
optional = true,
2025-06-23 11:48:18 -03:00
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,
},
},
},
2025-06-23 11:48:18 -03:00
{
-- Make sure to set this up properly if you have lazy=true
2025-06-23 11:48:18 -03:00
"MeanderingProgrammer/render-markdown.nvim",
optional = true,
2025-06-23 11:48:18 -03:00
opts = {
file_types = { "markdown", "Avante" },
},
ft = { "markdown", "Avante" },
},
{
"saghen/blink.cmp",
optional = true,
dependencies = {
"Kaiser-Yang/blink-cmp-avante",
},
opts = {
sources = {
default = { "avante" },
providers = { avante = { module = "blink-cmp-avante", name = "Avante" } },
},
},
},
},
},
}