Skip to content

Commit

Permalink
feat(blame-nvim): add binding to toggle git blame (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuuurino authored Apr 11, 2024
1 parent 5ebab68 commit a69a79e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lua/astrocommunity/git/blame-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ return {
"FabijanZulj/blame.nvim",
event = "User AstroGitFile",
dependencies = {
{
"AstroNvim/astrocore",
---@type AstroCoreOpts
opts = {
mappings = {
n = {
["<Leader>gB"] = {
"<cmd>ToggleBlame<cr>",
desc = "Toggle git blame",
},
},
},
},
},
{ -- configure heirline with custom hook to enable winbar for 'blame' filetype
"rebelot/heirline.nvim",
optional = true,
Expand Down

0 comments on commit a69a79e

Please sign in to comment.