feat(tabline): cleanup looks

This commit is contained in:
2026-02-16 11:35:37 +02:00
parent 02f9153d13
commit 67bf866434

View File

@@ -1,11 +1,33 @@
local theme = {
fill = 'TabLineFill',
head = 'TabLine',
current_tab = 'TabLineSel',
tab = 'TabLine',
win = 'TabLine',
tail = 'TabLine',
}
-- I literally need this for Dadbod for a nicer name in tabs. I don't use tabs
-- in any other way
return {
'nanozuki/tabby.nvim',
---@module 'tabby'
---@type TabbyConfig
opts = {
-- configs...
},
'nanozuki/tabby.nvim',
---@module 'tabby'
---@type TabbyConfig
opts = {
line = function(line)
return {
line.tabs().foreach(function(tab)
local hl = tab.is_current() and theme.current_tab or theme.tab
return {
line.sep('', hl, theme.head),
tab.number(),
tab.name(),
hl = hl,
margin = ' ',
}
end),
hl = theme.fill,
}
end,
},
}