Skip to content

Commit

Permalink
fix(blame-nvim): Align the git blame window properly when using heirl…
Browse files Browse the repository at this point in the history
…ine (#864)

fix: Align the blame window properly when using heirline
  • Loading branch information
rameshsanth committed Apr 10, 2024
1 parent 2c908d2 commit eee1a14
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lua/astrocommunity/git/blame-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
return {
"FabijanZulj/blame.nvim",
event = "User AstroGitFile",
dependencies = {
{ -- configure heirline with custom hook to enable winbar for 'blame' filetype
"rebelot/heirline.nvim",
optional = true,
opts = function(_, opts)
local disable_winbar_cb = vim.tbl_get(opts, "opts", "disable_winbar_cb")
return require("astrocore").extend_tbl(opts, {
opts = {
disable_winbar_cb = function(args)
if vim.bo[args.buf].filetype == "blame" then return false end
if disable_winbar_cb then return disable_winbar_cb(args) end
end,
},
})
end,
},
},
}

0 comments on commit eee1a14

Please sign in to comment.