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

56 lines
1.9 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 = {
{ "nvim-lua/plenary.nvim", optional = true },
{ "MunifTanjim/nui.nvim", optional = true },
--- The below dependencies are optional,
{ "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
{ "zbirenbaum/copilot.lua", optional = true }, -- for providers='copilot'
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" },
},
},
},
}