Files
gitlab.nvim/cmd/main.go
Harrison (Harry) Cramer 37a53842d0 Feat: Create Merge Request (#149)
- Adds the ability to create MRs to the plugin
- Adds the ability to jump to specific discussions/notes in the browser
- Fixes stale icons
- Adds debug keybinding for discussion tree for developers
2023-12-19 13:41:07 -05:00

25 lines
565 B
Go

package main
import (
"log"
)
func main() {
gitInfo, err := extractGitInfo(RefreshProjectInfo, GetProjectUrlFromNativeGitCmd, GetCurrentBranchNameFromNativeGitCmd)
if err != nil {
log.Fatalf("Failure initializing plugin with `git` commands: %v", err)
}
err, client := initGitlabClient()
if err != nil {
log.Fatalf("Failed to initialize Gitlab client: %v", err)
}
err, projectInfo := initProjectSettings(client, gitInfo)
if err != nil {
log.Fatalf("Failed to initialize project settings: %v", err)
}
startServer(client, projectInfo, gitInfo)
}