initial commit
This commit is contained in:
18
lua/gitea/init.lua
Normal file
18
lua/gitea/init.lua
Normal 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
|
||||
Reference in New Issue
Block a user