Update my vim-git integration to navigate easier through it and fix missing config for gitea

This commit is contained in:
2025-08-25 18:30:52 +02:00
parent ccb6bc9b1a
commit 577610166f

View File

@@ -3,18 +3,22 @@ return {
"tpope/vim-fugitive",
lazy = false,
keys = {
-- replaced by telescope
-- { "<Leader>gg", "<Cmd>Ggrep ", desc = "Git grep" },
{ "<Leader>gb", "<Cmd>G blame<CR>", desc = "Git blame" },
{ "<Leader>gll", "<Cmd>G log --graph --format='%h (%ar) %s :: %aN <%aE>'<CR>", desc = "Git blame" },
{ "<Leader>glx", "<Cmd>Gclog -- %<CR>" },
{ "<Leader>gl0", "<Cmd>0Gclog -- %<CR>" },
{ "<Leader>gll", "<Cmd>G log --graph --format='%h (%ar) %s :: %aN <%aE>'<CR>", desc = "Git log" },
{ "<Leader>glf", "<Cmd>G log --graph --format='%h (%ar) %s :: %aN <%aE>' %<CR>", desc = "Git log for current file" },
{ "<Leader>glc", "<Cmd>Gclog -- %<CR>", desc = "Quicklist commits affecting the current file" },
{ "<Leader>glh", "<Cmd>0Gclog -- %<CR>", desc = "Quicklist revisions of the current file" },
},
},
-- Github integration for :GBrowse
{ "tpope/vim-rhubarb" },
-- Gitea integration for :GBrowse
{ "borissov/fugitive-gitea" },
{
"borissov/fugitive-gitea",
config = function()
vim.g.fugitive_gitea_domains = { "https://gitea.nehrke.info" }
end
},
-- Gitlab integration for :GBrowse
{ "shumphrey/fugitive-gitlab.vim" },
-- Bitbucket integration for :GBrowse