From 27194b5a478f732a0ab3b6626af33dc5e09c46f3 Mon Sep 17 00:00:00 2001 From: Lander Van den Bulcke Date: Fri, 24 Oct 2025 09:58:34 +0200 Subject: [PATCH] feat: tweak neogit settings Signed-off-by: Lander Van den Bulcke --- plugins/git.nix | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/plugins/git.nix b/plugins/git.nix index 3a09892..cfd94fa 100644 --- a/plugins/git.nix +++ b/plugins/git.nix @@ -33,8 +33,26 @@ in enable = true; settings = { - commit_popup.kind = "floating"; - kind = "floating"; + graph_style = "unicode"; + process_spinner = true; + + git_services = { + "bitbucket.eu.seeds.basf.net" = { + pull_request = "https://bitbucket.eu.seeds.basf.net/projects/\${owner}/repos/\${repository}/pull-requests/new?source=\${branch_name}&t=1"; + commit = "https://bitbucket.eu.seeds.basf.net/projects/\${owner}/repos/\${repository}/commits/\${oid}"; + tree = "https://bitbucket.eu.seeds.basf.net/projects/\${owner}/repos/\${repository}/browse?at=refs%2Fheads%2F\${branch_name}"; + }; + "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}"; + }; + "github.com" = { + pull_request = "https://github.com/\${owner}/\${repository}/compare/\${branch_name}?expand=1"; + commit = "https://github.com/\${owner}/\${repository}/commit/\${oid}"; + tree = "https://github.com/\${owner}/\${repository}/tree/\${branch_name}"; + }; + }; }; }; };