diff --git a/nvim/.config/nvim/after/plugin/config.lua b/nvim/.config/nvim/after/plugin/config.lua index 1d5ea7d..f6a47d2 100644 --- a/nvim/.config/nvim/after/plugin/config.lua +++ b/nvim/.config/nvim/after/plugin/config.lua @@ -4,6 +4,17 @@ vim.keymap.set("n", "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', 'gbo', ':GitBlameOpenCommitURL', { + noremap = true, + silent = true, +}) + --- gitlinker.nvim require"gitlinker".setup({ router = { diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 8d2e408..7da69cd 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -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" }, diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index cc0d55d..b533ece 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -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",