Link to blame commit

I really need to consolidate git plugins
This commit is contained in:
Andrew Tomaka 2024-09-20 21:54:38 -04:00
parent 1f0b857f0f
commit 4a79421eef
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
3 changed files with 13 additions and 0 deletions

View file

@ -4,6 +4,17 @@ vim.keymap.set("n", "<Leader>bd", function()
require("bufdelete").bufdelete(0, true)
end)
--- gitblame.nvim
vim.g.gitblame_use_blame_commit_file_urls = true
vim.g.gitblame_display_virtual_text = 0
require('gitblame').setup {enabled = true}
vim.api.nvim_set_keymap('n', '<leader>gbo', ':GitBlameOpenCommitURL<CR>', {
noremap = true,
silent = true,
})
--- gitlinker.nvim
require"gitlinker".setup({
router = {

View file

@ -1,6 +1,7 @@
{
"bufdelete.nvim": { "branch": "master", "commit": "f6bcea78afb3060b198125256f897040538bcb81" },
"editorconfig.nvim": { "branch": "master", "commit": "5b9e303e1d6f7abfe616ce4cc8d3fffc554790bf" },
"git-blame.nvim": { "branch": "master", "commit": "8c56e864d448e84e0162872c381dd2715824dce2" },
"git-messenger.vim": { "branch": "master", "commit": "edc603d4cda7894a743e383e16c638e206d03148" },
"gitlinker.nvim": { "branch": "master", "commit": "a221c13fc3c7f5b8799933f4966ee8e618287292" },
"gitsigns.nvim": { "branch": "main", "commit": "1ef74b546732f185d0f806860fa5404df7614f28" },

View file

@ -22,6 +22,7 @@ require("lazy").setup({
"rhysd/git-messenger.vim",
"lewis6991/gitsigns.nvim",
"linrongbin16/gitlinker.nvim",
"f-person/git-blame.nvim",
"tpope/vim-eunuch",
"gruvbox-community/gruvbox",