default to copilot and use optional in dependencies

This commit is contained in:
George Guimarães 2025-08-10 18:34:04 -03:00
parent 67546eb094
commit 93946eea21
No known key found for this signature in database
GPG key ID: 20E86F6F5FC22FA7

View file

@ -1,23 +1,33 @@
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 = "claude",
provider = "copilot",
hints = {
enabled = false,
},
},
dependencies = {
"nvim-treesitter/nvim-treesitter",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
"hrsh7th/nvim-cmp",
"stevearc/dressing.nvim",
"folke/snacks.nvim",
"echasnovski/mini.icons",
"zbirenbaum/copilot.lua",
{ "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'
{
-- support for image pasting
"HakonHarnes/img-clip.nvim",
event = "VeryLazy",
optional = true,
opts = {
-- recommended settings
default = {
@ -32,7 +42,9 @@ return {
},
},
{
-- Make sure to set this up properly if you have lazy=true
"MeanderingProgrammer/render-markdown.nvim",
optional = true,
opts = {
file_types = { "markdown", "Avante" },
},