diff --git a/lua/lazyvim/plugins/extras/ai/avante.lua b/lua/lazyvim/plugins/extras/ai/avante.lua index b93289b2..bfbcfa79 100644 --- a/lua/lazyvim/plugins/extras/ai/avante.lua +++ b/lua/lazyvim/plugins/extras/ai/avante.lua @@ -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" }, },