feat(tabline): cleanup looks
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
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 {
|
||||
@@ -5,7 +13,21 @@ return {
|
||||
---@module 'tabby'
|
||||
---@type TabbyConfig
|
||||
opts = {
|
||||
-- configs...
|
||||
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,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user