-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Align the blame window properly when using heirline
- Loading branch information
1 parent
2c908d2
commit 3f030d5
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
}, | ||
} |