-
Notifications
You must be signed in to change notification settings - Fork 0
Tabline
Shawon edited this page Sep 3, 2024
·
1 revision
{
enable = true,
parts = {}
}
Shows active tabs.
{
-- Part name
type = "tabs",
-- Active tab configuration
active = {
corner_left = { "", "BarsTablineTabActiveSep" },
corner_right = { "", "BarsTablineTabActiveSep" },
padding_left = { " ", "BarsTablineTabActive" },
padding_right = { " " },
},
-- Inactive tab configuration
inactive = {
corner_left = { "", "BarsTablineTabInactiveSep" },
corner_right = { "", "BarsTablineTabInactiveSep" },
padding_left = { " ", "BarsTablineTabInactive" },
padding_right = { " " },
}
}
Shows active buffer. Also supports clicks.
{
-- Part name
type = "bufs",
-- Active buffer configuration
active = {
corner_left = { "", "BarsTablineBufActiveSep" },
corner_right = { "", "BarsTablineBufActiveSep" },
padding_left = { " ", "BarsTablineBufActive" },
padding_right = { " " },
},
-- Inactive buffer configuration
inactive = {
corner_left = { "", "BarsTablineBufInactiveSep" },
corner_right = { "", "BarsTablineBufInactiveSep" },
padding_left = { " ", "BarsTablineBufInactive" },
padding_right = { " " },
},
-- List of patterns to ignore
ignore = {}
}
Adds a gap.
{
-- Part name
type = "gap",
-- Highlight group name
hl = nil
}
Shows a custom part.
{
-- Part name
type = "custom",
value = {
corner_left = nil,
corner_right = nil,
padding_left = nil,
padding_right = nil,
}
}