initial commit

This commit is contained in:
2024-12-23 01:46:04 +01:00
commit c408cd3d24
7 changed files with 886 additions and 0 deletions

18
lua/gitea/init.lua Normal file
View File

@@ -0,0 +1,18 @@
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