Skip to content

Instantly share code, notes, and snippets.

@nanozuki
Created October 7, 2021 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanozuki/2fb58901b420f6df4c861a222d520fc4 to your computer and use it in GitHub Desktop.
Save nanozuki/2fb58901b420f6df4c861a222d520fc4 to your computer and use it in GitHub Desktop.
active wins at tail
local line = {
{ type = "text", text = { "  ", hl = { fg = hl_tabline.fg, bg = hl_tabline.bg } } },
{ type = "text", text = { "", hl = { fg = hl_tabline.bg, bg = hl_tabline_fill.bg } } },
{
type = "tab",
components = {
{
type = "text",
match = "active",
text = { "", hl = { fg = hl_tabline_sel.bg, bg = hl_tabline_fill.bg } },
},
{
type = "text",
match = "inactive",
text = { "", hl = { fg = hl_tabline.bg, bg = hl_tabline_fill.bg } },
},
{
type = "text",
match = "active",
text = { "  ", hl = { fg = hl_tabline_sel.fg, bg = hl_tabline_sel.bg, style = "bold" } },
},
{
type = "text",
match = "inactive",
text = { "  ", hl = { fg = hl_tabline.fg, bg = hl_tabline.bg, style = "bold" } },
},
{
type = "tabid",
},
{
type = "text",
text = { " ", hl = { fg = hl_tabline_sel.bg, bg = hl_tabline_fill.bg } },
},
{
type = "text",
text = { "", hl = { fg = hl_tabline.bg, bg = hl_tabline_fill.bg } },
},
},
},
{
type = "separator",
hl = "TabLineFill",
},
{
type = "win",
match = "active",
components = {
{
type = "text",
text = { "", hl = { fg = hl_tabline.bg, bg = hl_tabline_fill.bg } },
},
{
type = "text",
match = "top",
text = { "  ", hl = "TabLine" },
},
{
type = "text",
match = "not-top",
text = { "  ", hl = "TabLine" },
},
{
type = "unique-name",
hl = "TabLine",
},
{
type = "text",
text = { " ", hl = { fg = hl_tabline.bg, bg = hl_tabline_fill.bg } },
},
},
},
{ type = "text", text = { "", hl = { fg = hl_tabline.bg, bg = hl_tabline_fill.bg } } },
{ type = "text", text = { "  ", hl = { fg = hl_tabline.fg, bg = hl_tabline.bg } } },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment