diff --git a/lua/astrocommunity/git/blame-nvim/init.lua b/lua/astrocommunity/git/blame-nvim/init.lua index ddf6daf2d..f56c22753 100644 --- a/lua/astrocommunity/git/blame-nvim/init.lua +++ b/lua/astrocommunity/git/blame-nvim/init.lua @@ -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, + }, + }, }