local M = {} local config = require("gitea.config") local commands = require("gitea.commands") local auth = require("gitea.auth") -- Main entrypoint function M.setup(user_opts) config.setup(user_opts or {}) -- Attempt to load existing token; if not found, prompt user auth.ensure_token() -- Register :Gitea command and subcommands commands.register() end return M