Skip to content

Commit

Permalink
fix: Align the blame window properly when using heirline
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshsanth committed Apr 10, 2024
1 parent 2c908d2 commit 3f030d5
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 3f030d5

Please sign in to comment.