return {
  {
    "stevearc/conform.nvim",
    -- event = 'BufWritePre', -- uncomment for format on save
    opts = require "configs.conform",
  },

  -- These are some examples, uncomment them if you want to see them work!
  {
    "neovim/nvim-lspconfig",
    config = function()
      require "configs.lspconfig"
    end,
  },
  {
    "goolord/alpha-nvim",
    dependencies = { "nvim-tree/nvim-web-devicons" },
    lazy = false,
    priority = 1000, 
    config = function()
      local status_ok, alpha = pcall(require, "alpha")
      if not status_ok then
        vim.notify("Alpha-nvim failed to load!", vim.log.levels.ERROR)
        return
      end

      local status_dashboard, dashboard = pcall(require, "alpha.themes.dashboard")
      if not status_dashboard then
        vim.notify("Alpha dashboard theme failed to load!", vim.log.levels.ERROR)
        return
      end

      vim.api.nvim_set_hl(0, "AlphaHeader", { fg = "#f7ca88" })

      dashboard.section.header.val = {
        "       ████ ██████           █████      ██                     ",
        "      ███████████             █████                             ",
        "      █████████ ███████████████████ ███   ███████████   ",
        "     █████████  ███    █████████████ █████ ██████████████   ",
        "    █████████ ██████████ █████████ █████ █████ ████ █████   ",
        "  ███████████ ███    ███ █████████ █████ █████ ████ █████  ",
        " ██████  █████████████████████ ████ █████ █████ ████ ██████  ",
        "                                                                        ",
      }

      dashboard.section.header.opts.hl = "AlphaHeader"

      vim.api.nvim_set_hl(0, "AlphaShortcut", { fg = "#5f5f5f" })
      dashboard.section.buttons.val = {
        (function()
          local b = dashboard.button("f", "  Find File", "<cmd>Telescope find_files hidden=true cwd=~/<CR>")
          b.opts.hl_shortcut = "AlphaShortcut"
          return b
        end)(),
        (function()
          local b = dashboard.button("n", "  New File", "<cmd>enew | startinsert<CR>")
          b.opts.hl_shortcut = "AlphaShortcut"
          return b
        end)(),
        (function()
          local b = dashboard.button("r", "  Recent Files", "<cmd>Telescope oldfiles<CR>")
          b.opts.hl_shortcut = "AlphaShortcut"
          return b
        end)(),
        (function()
          local b = dashboard.button("/", "󱎸  Find Text", "<cmd>Telescope live_grep<CR>")
          b.opts.hl_shortcut = "AlphaShortcut"
          return b
        end)(),
        (function()
          local b = dashboard.button("c", "󰢻  Config", "<cmd>Lf ~/.config/nvim/<CR>")
          b.opts.hl_shortcut = "AlphaShortcut"
          return b
        end)(),
        (function()
          local b = dashboard.button("s", "  Restore Session", "<cmd>SessionRestore<CR>")
          b.opts.hl_shortcut = "AlphaShortcut"
          return b
        end)(),
        (function()
          local b = dashboard.button("l", "󰒲  Lazy", "<cmd>Lazy<CR>")
          b.opts.hl_shortcut = "AlphaShortcut"
          return b
        end)(),
        (function()
          local b = dashboard.button("Q", "  Quit", "<cmd>qa<CR>")
          b.opts.hl_shortcut = "AlphaShortcut"
          return b
        end)(),
      }

      local function footer()
        local stats = require("lazy").stats()
        local ms = math.floor(stats.startuptime * 100 + 0.5) / 100
        return "󱐋 Neovim loaded " .. stats.count .. " plugins in " .. ms .. "ms"
      end

      dashboard.section.footer.val = footer()

      dashboard.opts.layout = {
        { type = "padding", val = 8 },
        dashboard.section.header,
        { type = "padding", val = 2 },
        dashboard.section.buttons,
        { type = "padding", val = 2 },
        dashboard.section.footer,
      }

      alpha.setup(dashboard.opts)

      -- Optional: Update stats after everything has loaded
      vim.api.nvim_create_autocmd("User", {
        pattern = "VeryLazy", -- triggered after all lazy-loaded plugins finish
        callback = function()
          dashboard.section.footer.val = footer()
          pcall(vim.cmd.AlphaRedraw)
        end,
      })
    end,
  },
  {
    "mbbill/undotree",
    lazy = false,
  },
}
