---@type NvPluginSpec
-- NOTE: AI Chat
return {
  "yetone/avante.nvim",
  enabled = false,
  event = "VeryLazy",
  build = vim.fn.has "win32" ~= 0 and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
    or "make",
  version = false, -- Set this to "*" to always pull the latest release version, or set it to false to update to the latest code changes.
  ---@module 'avante'
  ---@type avante.Config
  opts = {
    behaviour = {
      enable_token_counting = false,
    },
    -- add any opts here
    -- for example
    provider = "gemini",
    windows = {
      width = 0.2 * vim.o.columns,
    },
    mappings = {
      sidebar = {
        close = { "q" },
      },
    },
  },
  dependencies = {
    "stevearc/dressing.nvim",
    "nvim-lua/plenary.nvim",
    "MunifTanjim/nui.nvim",
    --- The below dependencies are optional,
    "nvim-telescope/telescope.nvim", -- for file_selector provider telescope
    {
      -- support for image pasting
      "HakonHarnes/img-clip.nvim",
      event = "VeryLazy",
      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,
        },
      },
    },
  },
}
