11local function callback (opts )
22 return {
3- Normal = { fg = C .syntax .text , bg = C .ui .base },
4- NormalNC = { fg = C .syntax .text , bg = opts .inactive and C .ui .tabline or C .ui .base },
5- Title = { fg = C .syntax .cyan , bg = C .none },
3+ Normal = { fg = C .syntax .text , bg = opts .transparent and C .none or C .ui .base },
4+ NormalFloat = {
5+ fg = C .ui .text ,
6+ bg = opts .inactive and C .ui .base or C .ui .float ,
7+ },
8+ NormalNC = {
9+ fg = C .syntax .text ,
10+ bg = (opts .transparent and opts .inactive and C .ui .inactive_base )
11+ or (opts .transparent and C .none )
12+ or (opts .inactive and C .ui .inactive_base )
13+ or C .ui .base ,
14+ },
15+ Title = { fg = C .ui .title , bg = C .none },
616 Cursor = { fg = C .ui .base , bg = C .syntax .text },
717 CursorIM = { link = " Cursor" },
818 lCursor = { link = " Cursor" },
@@ -11,7 +21,7 @@ local function callback(opts)
1121 Conceal = { fg = C .syntax .subtext1 , bg = C .none },
1222 CursorColumn = { fg = C .none , bg = C .ui .current_line },
1323 CursorLine = { fg = C .none , bg = C .ui .current_line },
14- Directory = { fg = C .syntax .blue , bg = C .none },
24+ Directory = { fg = C .ui .blue , bg = C .none },
1525 DiffAdd = { fg = C .ui .base , bg = C .syntax .green },
1626 DiffChange = { fg = C .ui .base , bg = C .syntax .yellow },
1727 DiffDelete = { fg = C .ui .base , bg = C .syntax .red },
@@ -25,7 +35,7 @@ local function callback(opts)
2535 DiffLine = { fg = C .syntax .text }, -- NOTE: Find better color
2636 DiffIndexLine = { fg = C .syntax .cyan },
2737 ErrorMsg = { fg = C .syntax .red , bg = C .none },
28- WinSeparator = { fg = C .ui .split , bg = C .none , bold = true },
38+ WinSeparator = { fg = C .ui .split , bg = opts . transparent and C .none or C . ui . base , bold = false },
2939 Folded = { fg = C .syntax .subtext1 , bg = C .none },
3040 FoldColumn = { fg = C .none , bg = C .none },
3141 IncSearch = { fg = C .ui .base , bg = C .ui .purple },
@@ -57,18 +67,26 @@ local function callback(opts)
5767 StatusCommand = { fg = C .ui .tabline , bg = C .ui .yellow },
5868 StatusTerminal = { link = " StatusInsert" },
5969 WinBar = { fg = C .syntax .subtext0 , bg = C .none },
60- WinBarNC = { fg = C .syntax .subtext1 , bg = opts .inactive and C .ui .tabline or C .none },
70+ WinBarNC = {
71+ fg = C .syntax .subtext1 ,
72+ bg = (opts .transparent and opts .inactive and C .ui .inactive_base )
73+ or (opts .transparent and C .none )
74+ or (opts .inactive and C .ui .inactive_base )
75+ or C .ui .base ,
76+ },
6177 TabLine = { fg = C .syntax .subtext1 , bg = C .ui .tabline },
6278 TabLineSel = { fg = C .syntax .text , bg = C .ui .base , bold = true },
6379 TabLineFill = { fg = C .none , bg = C .ui .tabline },
6480 Terminal = { fg = C .syntax .text , bg = C .ui .base },
6581 Visual = { fg = C .none , bg = C .ui .selection },
6682 VisualNOS = { fg = C .ui .selection , bg = C .none },
67- VirtSplit = { bg = C .ui .base },
83+ VertSplit = { fg = C . ui . split , bg = opts . transparent and C . none or C .ui .base },
6884 WarningMsg = { fg = C .syntax .yellow , bg = C .none },
6985 WildMenu = { fg = C .ui .base , bg = C .syntax .blue },
7086 EndOfBuffer = { fg = C .ui .base , bg = C .none },
87+ FloatTitle = { fg = C .ui .title },
7188 FloatBorder = { fg = C .ui .border , bg = C .ui .base },
89+ Float = { fg = C .ui .border , bg = C .ui .base },
7290 MatchParen = { fg = C .none , bg = C .ui .highlight },
7391 }
7492end
0 commit comments