feat(tabline): cleanup looks
This commit is contained in:
@@ -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
|
-- I literally need this for Dadbod for a nicer name in tabs. I don't use tabs
|
||||||
-- in any other way
|
-- in any other way
|
||||||
return {
|
return {
|
||||||
'nanozuki/tabby.nvim',
|
'nanozuki/tabby.nvim',
|
||||||
---@module 'tabby'
|
---@module 'tabby'
|
||||||
---@type TabbyConfig
|
---@type TabbyConfig
|
||||||
opts = {
|
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