changes
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user