-- Core editor plugins
return {
  -- Keybinding helper (lazy load on first key after leader)
  {
    "folke/which-key.nvim",
    event = "VeryLazy",
  },

  -- Motion plugin (s/S for jumping) - load on key press
  {
    url = "https://codeberg.org/andyg/leap.nvim",
    keys = {
      { "s", mode = { "n", "x", "o" }, desc = "Leap forward" },
      { "S", mode = { "n", "x", "o" }, desc = "Leap backward" },
    },
    config = function()
      vim.keymap.set({'n', 'x', 'o'}, 's', '<Plug>(leap-forward)')
      vim.keymap.set({'n', 'x', 'o'}, 'S', '<Plug>(leap-backward)')
    end,
  },

  -- Session management (defer loading)
  {
    "rmagatti/auto-session",
    event = "VimEnter",
    opts = {
      suppressed_dirs = { "~/", "~/Projects", "~/Downloads", "/" },
    },
  },
}
