mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-28 13:58:12 +02:00
Merge b16c86b788
into 25abbf546d
This commit is contained in:
commit
2a1bd08e79
1 changed files with 67 additions and 0 deletions
67
lua/lazyvim/plugins/extras/ai/avante.lua
Normal file
67
lua/lazyvim/plugins/extras/ai/avante.lua
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"yetone/avante.nvim",
|
||||||
|
build = vim.fn.has("win32") ~= 0 and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
|
||||||
|
or "make",
|
||||||
|
event = "VeryLazy",
|
||||||
|
version = false,
|
||||||
|
opts = {
|
||||||
|
provider = "copilot",
|
||||||
|
hints = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
dependencies = {
|
||||||
|
"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
|
||||||
|
{
|
||||||
|
-- support for image pasting
|
||||||
|
"HakonHarnes/img-clip.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
optional = true,
|
||||||
|
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",
|
||||||
|
optional = true,
|
||||||
|
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" } },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue