From 67bf866434f273fe692e5a3dc5187c9817036363 Mon Sep 17 00:00:00 2001 From: Ruslan Date: Mon, 16 Feb 2026 11:35:37 +0200 Subject: [PATCH] feat(tabline): cleanup looks --- lua/crentist/lazy/tabline.lua | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/lua/crentist/lazy/tabline.lua b/lua/crentist/lazy/tabline.lua index f12ed07..6591e6d 100644 --- a/lua/crentist/lazy/tabline.lua +++ b/lua/crentist/lazy/tabline.lua @@ -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, + }, }