-- This is some kind of AI integrration that I figured I'd play with, since the idea of any kind of
-- agentic AI within a terminal in an interface that isn't like Codex sounds interesting
-- and obviously I'm a cheater
return {
  {
    "GeorgesAlkhouri/nvim-aider",
    cmd = "Aider",
    -- Example key mappings for common actions:
    keys = {
      { "<leader>a/", "<cmd>Aider toggle<cr>", desc = "Toggle Aider" },
      { "<leader>as", "<cmd>Aider send<cr>", desc = "Send to Aider", mode = { "n", "v" } },
      { "<leader>ac", "<cmd>Aider command<cr>", desc = "Aider Commands" },
      { "<leader>ab", "<cmd>Aider buffer<cr>", desc = "Send Buffer" },
      { "<leader>a+", "<cmd>Aider add<cr>", desc = "Add File" },
      { "<leader>a-", "<cmd>Aider drop<cr>", desc = "Drop File" },
      { "<leader>ar", "<cmd>Aider add readonly<cr>", desc = "Add Read-Only" },
      { "<leader>aR", "<cmd>Aider reset<cr>", desc = "Reset Session" },
      -- Example nvim-tree.lua integration if needed
      { "<leader>a+", "<cmd>AiderTreeAddFile<cr>", desc = "Add File from Tree to Aider", ft = "NvimTree" },
      { "<leader>a-", "<cmd>AiderTreeDropFile<cr>", desc = "Drop File from Tree from Aider", ft = "NvimTree" },
    },
    dependencies = {
      "folke/snacks.nvim",
      --- The below dependencies are optional
      "catppuccin/nvim",
      -- "nvim-tree/nvim-tree.lua", --- Neo-tree integration {
      --   "nvim-neo-tree/neo-tree.nvim",
      --   opts = function(_, opts)
      --     -- Example mapping configuration (already set by default)
      --     -- opts.window = {
      --     --   mappings = {
      --     --     ["+"] = { "nvim_aider_add", desc = "add to aider" },
      --     --     ["-"] = { "nvim_aider_drop", desc = "drop from aider" }
      --     --     ["="] = { "nvim_aider_add_read_only", desc = "add read-only to aider" }
      --     --   }
      --     -- }
      --     require("nvim_aider.neo_tree").setup(opts)
      --   end,
    },
  },
}
