34 lines
875 B
Lua
34 lines
875 B
Lua
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 = {
|
|
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,
|
|
},
|
|
}
|
|
|