updated cokeline

This commit is contained in:
Sven Vogel 2023-12-01 18:33:05 +01:00
parent 97872a76d4
commit 72fbadaf70
1 changed files with 52 additions and 5 deletions

View File

@ -26,11 +26,20 @@ return {
end, end,
bold = function(buffer) bold = function(buffer)
return buffer.is_focused return buffer.is_focused
end end,
}, },
components = { components = {
{ {
text = function(buffer) return ' ' .. buffer.devicon.icon end, text = function(buffer)
if buffer.is_focused then
return ""
end
return " "
end,
fg = "Normal"
},
{
text = function(buffer) return buffer.devicon.icon end,
fg = function(buffer) return buffer.devicon.color end, fg = function(buffer) return buffer.devicon.color end,
}, },
{ {
@ -62,9 +71,46 @@ return {
components = { components = {
{ {
text = function(tabpage) text = function(tabpage)
return '' .. tabpage.number return ' ' .. tabpage.number .. ' '
end end,
} bg = function(tabpage)
if tabpage.is_active then
return "TabLineSel"
end
return "ColorColumn"
end,
fg = function(tabpage)
if tabpage.is_active then
return "TabLine"
end
return "Normal"
end,
bold = true
},
{
text = function(tabpage)
if tabpage.is_active then
return "󰅖 "
end
return ""
end,
on_click = function(_, _, _, _, tabpage)
tabpage:close()
end,
bg = function(tabpage)
if tabpage.is_active then
return "TabLineSel"
end
return "ColorColumn"
end,
fg = function(tabpage)
if tabpage.is_active then
return "TabLine"
end
return "Normal"
end,
bold = true
},
} }
}, },
sidebar = { sidebar = {
@ -72,6 +118,7 @@ return {
components = { components = {
{ {
text = "Explorer", text = "Explorer",
bg = "ColorColumn"
} }
}, },
}, },