This commit is contained in:
2024-12-23 19:09:51 +01:00
parent c408cd3d24
commit d8a7da82fe
4 changed files with 426 additions and 474 deletions

View File

@@ -1,18 +1,21 @@
local M = {}
local config = require("gitea.config")
local commands = require("gitea.commands")
local auth = require("gitea.auth")
local highlights = require("gitea.highlights")
-- Main entrypoint
function M.setup(user_opts)
-- Load user config (if any), or defaults
config.setup(user_opts or {})
-- Attempt to load existing token; if not found, prompt user
-- Ensure token is loaded
auth.ensure_token()
-- Register :Gitea command and subcommands
-- Register :Gitea commands
commands.register()
-- Apply the default Dracula-like highlights
highlights.setup()
end
return M
return M