Skip to content

Commit

Permalink
revert groups
Browse files Browse the repository at this point in the history
  • Loading branch information
jackielii committed Feb 5, 2024
1 parent 3ce4312 commit 7d083f8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lua/bufferline/groups.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ function separator.pill(group, hls, count)
local label_hl = label_grp and label_grp.hl_group or hls.group_label.hl_group
local left, right = "█", "█"
local indicator = {
{ text = C.padding, highlight = bg_hl },
{ text = left, highlight = sep_hl },
{ text = C.padding, highlight = bg_hl },
{ text = left, highlight = sep_hl },
{ text = display_name .. count, highlight = label_hl },
{ text = right, highlight = sep_hl },
{ text = C.padding, highlight = bg_hl },
{ text = right, highlight = sep_hl },
{ text = C.padding, highlight = bg_hl },
}
return { sep_start = indicator, sep_end = space_end(hls) }
end
Expand All @@ -69,9 +69,9 @@ function separator.tab(group, hls, count)
local hl = hls.fill.hl_group
local indicator_hl = hls.buffer.hl_group
local indicator = {
{ highlight = hl, text = C.padding },
{ highlight = hl, text = C.padding },
{ highlight = indicator_hl, text = C.padding .. group.name .. count .. C.padding },
{ highlight = hl, text = C.padding },
{ highlight = hl, text = C.padding },
}
return { sep_start = indicator, sep_end = space_end(hls) }
end
Expand Down Expand Up @@ -158,8 +158,6 @@ local function persist_pinned_buffers()
else
vim.g[PINNED_KEY] = table.concat(pinned, ",")
end

vim.api.nvim_exec_autocmds("User", { pattern = "BufferlinePinBuffer" })
end

---@param element bufferline.TabElement
Expand Down

0 comments on commit 7d083f8

Please sign in to comment.