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

Code before:
          name = "avante_commands",
          module = "blink.compat.source",
          score_offset = 90, -- show at a higher priority than lsp
          opts = {},
        },
        avante_files = {
          name = "avante_files",
          module = "blink.compat.source",
          score_offset = 100, -- show at a higher priority than lsp
          opts = {},
        },
        avante_mentions = {
          name = "avante_mentions",
          module = "blink.compat.source",
          score_offset = 1000, -- show at a higher priority than lsp
          opts = {},
        },
      }
      opts.compat = {
        "avante_commands",
        "avante_mentions",
        "avante_files",
      }
    end,
    build = LazyVim.is_win() and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" or "make",
  },
  {
    "MeanderingProgrammer/render-markdown.nvim",
    optional = true,
    ft = function(_, ft)
      vim.list_extend(ft, { "Avante" })
    end,
    opts = function(_, opts)
      opts.file_types = vim.list_extend(opts.file_types or {}, { "Avante" })
    end,
  },
  {
    "folke/which-key.nvim",
    optional = true,
    opts = {
      spec = {
        { "<leader>a", group = "ai" },
      },
    },
  },
}


Review comment (suggestion):
```suggestion
  },
    {
    "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 = {},
          },
          avante_mentions = {
            name = "avante_mentions",
            module = "blink.compat.source",
            score_offset = 1000,
            opts = {},
          },
        },
      },
    },
  },

```

Code after:
      "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 = {
          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" },
  },