diff --git a/README.md b/README.md index 5ab8cae3c..1f17f1d8e 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,11 @@ neogit.setup { 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}", + }, }, -- Allows a different telescope sorter. Defaults to 'fuzzy_with_index_bias'. The example below will use the native fzf -- sorter instead. By default, this function returns `nil`. diff --git a/doc/neogit.txt b/doc/neogit.txt index 5616a1d92..fa407c58d 100644 --- a/doc/neogit.txt +++ b/doc/neogit.txt @@ -135,6 +135,11 @@ to Neovim users. 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}", + }, }, -- Allows a different telescope sorter. Defaults to 'fuzzy_with_index_bias'. The example below will use the native fzf -- sorter instead. By default, this function returns `nil`. diff --git a/lua/neogit/config.lua b/lua/neogit/config.lua index 8b3c7fff0..a036ea9e0 100644 --- a/lua/neogit/config.lua +++ b/lua/neogit/config.lua @@ -429,6 +429,11 @@ function M.get_default_values() 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}", + }, }, highlight = {}, disable_insert_on_commit = "auto",