Skip to content

Tabline

Shawon edited this page Sep 3, 2024 · 1 revision

🪷 Tabline

{
    enable = true,
    parts = {}
}

🧩 Part: Tabs

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 = { " " },
    }
}

🧩 Part: Bufs

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 = {}
}

🧩 Part: Gap

Adds a gap.

{
    -- Part name
    type = "gap",

    -- Highlight group name
    hl = nil
}

🧩 Part: Custom

Shows a custom part.

{
    -- Part name
    type = "custom",

    value = {
        corner_left = nil,
        corner_right = nil,

        padding_left = nil,
        padding_right = nil,
    }
}
Clone this wiki locally