Skip to content

Commit

Permalink
Tag section
Browse files Browse the repository at this point in the history
  • Loading branch information
CKolkey committed Nov 28, 2023
1 parent a177fac commit f95809a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions lua/neogit/buffers/refs_view/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local popups = require("neogit.popups")
local CommitViewBuffer = require("neogit.buffers.commit_view")
local config = require("neogit.config")
local notification = require("neogit.lib.notification")
local util = require("neogit.lib.util")

--- @class RefsViewBuffer
--- @field is_open boolean whether the buffer is currently shown
Expand Down
10 changes: 6 additions & 4 deletions lua/neogit/buffers/refs_view/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ local function section(refs, heading, head)

table.insert(rows, row { text("") })

return col({
row(util.merge(heading, { text.highlight("NeogitGraphWhite")(string.format(" (%d)", #refs)) })),
col(rows),
}, { foldable = true })
return col.tag("Section")({
row.tag("SectionHeading")(
util.merge(heading, { text.highlight("NeogitGraphWhite")(string.format(" (%d)", #refs)) })
),
col.tag("SectionBody")(rows),
}, { foldable = true, folded = false })
end

function M.Branches(branches, head)
Expand Down

0 comments on commit f95809a

Please sign in to comment.