Skip to content

Commit

Permalink
refactor(blame-nvim): use AstroUI to enable winbar for blame buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jun 20, 2024
1 parent 8d725fc commit fd7d0de
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions lua/astrocommunity/git/blame-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,6 @@ return {
},
},
},
{ -- 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.api.nvim_buf_is_valid(args.buf) and vim.bo[args.buf].filetype == "blame" then return false end
if disable_winbar_cb then return disable_winbar_cb(args) end
end,
},
})
end,
},
{ "AstroNvim/astroui", opts = { status = { winbar = { enabled = { filetype = { "blame" } } } } } },
},
}

0 comments on commit fd7d0de

Please sign in to comment.