return { "NeogitOrg/neogit", lazy = true, dependencies = { "nvim-lua/plenary.nvim", -- required "sindrets/diffview.nvim", -- optional "m00qek/baleia.nvim", -- optional "nvim-telescope/telescope.nvim", -- optional "ibhagwan/fzf-lua", -- optional }, cmd = "Neogit", opts = { git_services = { ["github.com"] = { pull_request = "https://github.com/${owner}/${repository}/compare/${branch_name}?expand=1", commit = "https://github.com/${owner}/${repository}/commit/${oid}", tree = "https://${host}/${owner}/${repository}/tree/${branch_name}", }, ["bitbucket.org"] = { pull_request = "https://bitbucket.org/${owner}/${repository}/pull-requests/new?source=${branch_name}&t=1", commit = "https://bitbucket.org/${owner}/${repository}/commits/${oid}", tree = "https://bitbucket.org/${owner}/${repository}/branch/${branch_name}", }, ["gitlab.com"] = { pull_request = "https://gitlab.com/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name}", commit = "https://gitlab.com/${owner}/${repository}/-/commit/${oid}", tree = "https://gitlab.com/${owner}/${repository}/-/tree/${branch_name}?ref_type=heads", }, ["azure.com"] = { pull_request = "https://dev.azure.com/${owner}/_git/${repository}/pullrequestcreate?sourceRef=${branch_name}&targetRef=${target}", commit = "", tree = "", }, ["codeberg.org"] = { pull_request = "https://${host}/${owner}/${repository}/compare/${branch_name}", commit = "https://${host}/${owner}/${repository}/commit/${oid}", tree = "https://${host}/${owner}/${repository}/src/branch/${branch_name}", }, ["git.protei.ru"] = { pull_request = "https://git.protei.ru/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name}", commit = "https://git.protei.ru/${owner}/${repository}/-/commit/${oid}", tree = "https://git.protei.ru/${owner}/${repository}/-/tree/${branch_name}?ref_type=heads", }, ["git.faumaray.ru"] = { pull_request = "https://git.faumaray.ru/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name}", commit = "https://git.faumaray.ru/${owner}/${repository}/-/commit/${oid}", tree = "https://git.faumaray.ru/${owner}/${repository}/-/tree/${branch_name}?ref_type=heads", }, }, } }