Repository: LazyVim/LazyVim
File: lua/lazyvim/plugins/extras/ai/avante.lua (Lua)

Code before:
    dependencies = {
      "stevearc/dressing.nvim",
    },
    opts = {
      -- Default configuration
      hints = { enabled = false },

      ---@alias AvanteProvider "claude" | "openai" | "azure" | "gemini" | "cohere" | "copilot" | string
      provider = "claude", -- Recommend using Claude
      auto_suggestions_provider = "claude", -- Since auto-suggestions are a high-frequency operation and therefore expensive, it is recommended to specify an inexpensive provider or even a free provider: copilot
      claude = {
        endpoint = "https://api.anthropic.com",
        model = "claude-3-5-sonnet-20241022",
        temperature = 0,
        max_tokens = 4096,
      },

      -- File selector configuration
      --- @alias FileSelectorProvider "native" | "fzf" | "mini.pick" | "snacks" | "telescope" | string
      file_selector = {
        provider = "fzf", -- Avoid native provider issues
        provider_opts = {},
      },
    },
    build = LazyVim.is_win() and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" or "make",
  },
    {
    "saghen/blink.cmp",
    lazy = true,
    opts = {
      sources = {
        default = { "avante_commands", "avante_mentions", "avante_files" },
        compat = {
          "avante_commands",
          "avante_mentions",
          "avante_files",
        },
        -- LSP score_offset is typically 60
        providers = {
          avante_commands = {
            name = "avante_commands",
            module = "blink.compat.source",
            score_offset = 90,
            opts = {},
          },
          avante_files = {
            name = "avante_files",
            module = "blink.compat.source",
            score_offset = 100,
            opts = {},
          },

Review comment (suggestion):
```suggestion
  },
    {
    "saghen/blink.compat",
    lazy = true,
    opts = {},
    config = function()
      -- monkeypatch cmp.ConfirmBehavior for Avante
      require("cmp").ConfirmBehavior = {
        Insert = "insert",
        Replace = "replace",
      }
    end,
  },

```

Code after:
    "yetone/avante.nvim",
    build = vim.fn.has("win32") ~= 0 and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
      or "make",
    event = "VeryLazy",
    opts = {
      provider = "copilot",
      selection = {
        hint_display = "none",
      },
    },
    cmd = {
      "AvanteAsk",
      "AvanteBuild",
      "AvanteChat",
      "AvanteClear",
      "AvanteEdit",
      "AvanteFocus",
      "AvanteHistory",
      "AvanteModels",
      "AvanteRefresh",
      "AvanteShowRepoMap",
      "AvanteStop",
      "AvanteSwitchProvider",
      "AvanteToggle",
    },
    keys = {
      { "n", "<leader>aa", "<cmd>AvanteAsk<CR>", desc = "Ask Avante" },
      { "n", "<leader>ac", "<cmd>AvanteChat<CR>", desc = "Chat with Avante" },
      { "n", "<leader>ae", "<cmd>AvanteEdit<CR>", desc = "Edit Avante" },
      { "n", "<leader>af", "<cmd>AvanteFocus<CR>", desc = "Focus Avante" },
      { "n", "<leader>ah", "<cmd>AvanteHistory<CR>", desc = "Avante History" },
      { "n", "<leader>am", "<cmd>AvanteModels<CR>", desc = "Select Avante Model" },
      { "n", "<leader>an", "<cmd>AvanteChatNew<CR>", desc = "New Avante Chat" },
      { "n", "<leader>ap", "<cmd>AvanteSwitchProvider<CR>", desc = "Switch Avante Provider" },
      { "n", "<leader>ar", "<cmd>AvanteRefresh<CR>", desc = "Refresh Avante" },
      { "n", "<leader>as", "<cmd>AvanteStop<CR>", desc = "Stop Avante" },
      { "n", "<leader>at", "<cmd>AvanteToggle<CR>", desc = "Toggle Avante" },
    },
  },

  -- 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 = {