Skip to content

Commit 8877bb1

Browse files
authored
feat: support nvim 0.10 (zenbones-theme#176)
1 parent 453ec69 commit 8877bb1

File tree

2 files changed

+28
-10
lines changed

2 files changed

+28
-10
lines changed

lua/zenbones/specs/dark.lua

+14-5
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,30 @@ local function generate(p, opt)
6262
Folded { bg = not opt.transparent_background and p1.bg.li(14) or "NONE", fg = p1.bg.li(64) }, -- line used for closed folds
6363
CursorLineNr { LineNr, fg = p.fg, gui = "bold" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
6464

65-
-- ModeMsg { }, -- 'showmode' message (e.g., "-- INSERT -- ")
65+
ModeMsg { Normal }, -- 'showmode' message (e.g., "-- INSERT -- ")
6666
-- MsgArea { }, -- Area for messages and cmdline
6767
-- MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display'
6868
MoreMsg { fg = p.leaf, gui = "bold" }, -- |more-prompt|
69+
6970
NormalFloat { bg = p1.bg.li(10) }, -- Normal text in floating windows.
7071
FloatBorder { fg = p1.bg.li(46), bg = opt.solid_float_border and NormalFloat.bg or "NONE" }, -- Normal text in floating windows.
72+
-- FloatTitle { },
73+
-- FloatFooter { },
7174

7275
Pmenu { bg = p1.bg.li(10) }, -- Popup menu: normal item.
7376
PmenuSel { bg = p1.bg.li(22) }, -- Popup menu: selected item.
77+
-- PmenuKind { },
78+
-- PmenuKindSel { },
79+
-- PmenuKindExtra { },
80+
-- PmenuKindExtraSel { },
7481
PmenuSbar { bg = p1.bg.li(32) }, -- Popup menu: scrollbar.
7582
PmenuThumb { bg = p1.bg.li(50) }, -- Popup menu: Thumb of the scrollbar.
7683

7784
Search { bg = p.blossom.lightness(p1.bg.l + 24), fg = p.fg }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
7885
IncSearch { bg = p.blossom.lightness(p1.bg.l + 56), fg = p1.bg, gui = "bold" }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
7986
-- Substitute { }, -- |:substitute| replacement text highlighting
8087
MatchParen { Search }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
81-
-- QuickFixLine { }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
88+
QuickFixLine { Search }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
8289
CurSearch { IncSearch },
8390

8491
SpellBad { fg = Error.fg.de(30), gui = "undercurl", guisp = Error.fg }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
@@ -91,6 +98,8 @@ local function generate(p, opt)
9198
TabLine { StatusLine }, -- tab pages line, not active tab page label
9299
TabLineFill { StatusLineNC }, -- tab pages line, where there are no labels
93100
TabLineSel { gui = "bold" }, -- tab pages line, active tab page label
101+
WinBar { StatusLine },
102+
WinBarNC { StatusLineNC },
94103
WinSeparator { fg = LineNr.fg, bg = opt.solid_vert_split and StatusLineNC.bg or "NONE" },
95104
VertSplit { WinSeparator },
96105

@@ -115,11 +124,11 @@ local function generate(p, opt)
115124
-- Uncomment and edit if you want more specific syntax highlighting.
116125

117126
Constant { fg = p1.fg4, gui = "italic" }, -- (preferred) any constant
118-
-- String { }, -- a string constant: "this is a string"
119-
-- Character { }, -- a character constant: 'c', '\n'
127+
String { Constant }, -- a string constant: "this is a string"
128+
Character { Constant }, -- a character constant: 'c', '\n'
120129
Number { fg = p.fg, gui = "italic" }, -- a number constant: 234, 0xff
121130
Boolean { Number }, -- a boolean constant: TRUE, false
122-
-- Float { }, -- a floating point constant: 2.3e10
131+
Float { Constant }, -- a floating point constant: 2.3e10
123132

124133
Identifier { fg = p1.fg2 }, -- (preferred) any variable name
125134
Function { fg = p.fg }, -- function name (also: methods for classes)

lua/zenbones/specs/light.lua

+14-5
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,30 @@ local function generate(p, opt)
6262
Folded { bg = not opt.transparent_background and p1.bg.da(16) or "NONE", fg = p1.bg.da(64) }, -- line used for closed folds
6363
CursorLineNr { LineNr, fg = p.fg, gui = "bold" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
6464

65-
-- ModeMsg { }, -- 'showmode' message (e.g., "-- INSERT -- ")
65+
ModeMsg { Normal }, -- 'showmode' message (e.g., "-- INSERT -- ")
6666
-- MsgArea { }, -- Area for messages and cmdline
6767
-- MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display'
6868
MoreMsg { fg = p.leaf, gui = "bold" }, -- |more-prompt|
69+
6970
NormalFloat { bg = p1.bg.da(8) }, -- Normal text in floating windows.
7071
FloatBorder { fg = p1.bg.da(50), bg = opt.solid_float_border and NormalFloat.bg or "NONE" }, -- Normal text in floating windows.
72+
-- FloatTitle { },
73+
-- FloatFooter { },
7174

7275
Pmenu { bg = p1.bg.da(10) }, -- Popup menu: normal item.
7376
PmenuSel { bg = p1.bg.da(20) }, -- Popup menu: selected item.
77+
-- PmenuKind { },
78+
-- PmenuKindSel { },
79+
-- PmenuKindExtra { },
80+
-- PmenuKindExtraSel { },
7481
PmenuSbar { bg = p1.bg.da(28) }, -- Popup menu: scrollbar.
7582
PmenuThumb { bg = p1.bg.li(58) }, -- Popup menu: Thumb of the scrollbar.
7683

7784
Search { bg = p.blossom.lightness(p1.bg.l - 15), fg = p.fg }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
7885
IncSearch { bg = p.blossom.lightness(p1.bg.l - 35), fg = p1.bg, gui = "bold" }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
7986
-- Substitute { }, -- |:substitute| replacement text highlighting
8087
MatchParen { Search }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
81-
-- QuickFixLine { }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
88+
QuickFixLine { Search }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
8289
CurSearch { IncSearch },
8390

8491
SpellBad { fg = Error.fg.de(30), gui = "undercurl", sp = Error.fg }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
@@ -91,6 +98,8 @@ local function generate(p, opt)
9198
TabLine { StatusLine }, -- tab pages line, not active tab page label
9299
TabLineFill { StatusLineNC }, -- tab pages line, where there are no labels
93100
TabLineSel { gui = "bold" }, -- tab pages line, active tab page label
101+
WinBar { StatusLine },
102+
WinBarNC { StatusLineNC },
94103
WinSeparator { fg = LineNr.fg, bg = opt.solid_vert_split and StatusLineNC.bg or "NONE" },
95104
VertSplit { WinSeparator },
96105

@@ -115,11 +124,11 @@ local function generate(p, opt)
115124
-- Uncomment and edit if you want more specific syntax highlighting.
116125

117126
Constant { fg = p1.fg4, gui = "italic" }, -- (preferred) any constant
118-
-- String { }, -- a string constant: "this is a string"
119-
-- Character { }, -- a character constant: 'c', '\n'
127+
String { Constant }, -- a string constant: "this is a string"
128+
Character { Constant }, -- a character constant: 'c', '\n'
120129
Number { fg = p.fg, gui = "italic" }, -- a number constant: 234, 0xff
121130
Boolean { Number }, -- a boolean constant: TRUE, false
122-
-- Float { }, -- a floating point constant: 2.3e10
131+
Float { Constant }, -- a floating point constant: 2.3e10
123132

124133
Identifier { fg = p1.fg2 }, -- (preferred) any variable name
125134
Function { fg = p.fg }, -- function name (also: methods for classes)

0 commit comments

Comments
 (0)