Skip to content

Commit 8e63b5e

Browse files
authored
Merge pull request zenbones-theme#183 from zenbones-theme/constructor-lua-ts
fix(ts): use delimiter for @constructor.lua
2 parents e9ba830 + c4e1845 commit 8e63b5e

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

lua/zenbones/specs/dark.lua

+10-5
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ local function generate(p, opt)
126126
Constant { fg = p1.fg4, gui = "italic" }, -- (preferred) any constant
127127
String { Constant }, -- a string constant: "this is a string"
128128
Character { Constant }, -- a character constant: 'c', '\n'
129-
Number { fg = p.fg, gui = "italic" }, -- a number constant: 234, 0xff
130-
Boolean { Number }, -- a boolean constant: TRUE, false
131-
Float { Constant }, -- a floating point constant: 2.3e10
129+
Number { fg = p1.fg4 }, -- a number constant: 234, 0xff
130+
Boolean { fg = p.fg, gui = "italic" }, -- a boolean constant: TRUE, false
131+
Float { Number }, -- a floating point constant: 2.3e10
132132

133133
Identifier { fg = p1.fg2 }, -- (preferred) any variable name
134134
Function { fg = p.fg }, -- function name (also: methods for classes)
@@ -214,7 +214,7 @@ local function generate(p, opt)
214214
sym "@module.builtin" { sym "@module" },
215215
sym "@label" { Statement },
216216

217-
sym "@string" { Constant },
217+
sym "@string" { String },
218218
sym "@string.documentation" { sym "@string" },
219219
sym "@string.regexp" { Constant },
220220
sym "@string.escape" { Special },
@@ -226,7 +226,7 @@ local function generate(p, opt)
226226
sym "@character" { Constant },
227227
sym "@character.special" { Special },
228228

229-
sym "@boolean" { Number },
229+
sym "@boolean" { Boolean },
230230
sym "@number" { Number },
231231
sym "@number.float" { sym "@number" },
232232

@@ -321,6 +321,8 @@ local function generate(p, opt)
321321
sym "@variable.parameter.vimdoc" { Type },
322322
sym "@label.vimdoc" { Type, gui = "bold" },
323323

324+
sym "@constructor.lua" { Delimiter },
325+
324326
-- LSP Semantic Token Groups
325327
sym "@lsp.type.boolean" { sym "@boolean" },
326328
sym "@lsp.type.builtinType" { sym "@type.builtin" },
@@ -398,6 +400,9 @@ local function generate(p, opt)
398400
IblIndent { fg = p1.bg.li(8).de(22) },
399401
IblScope { fg = p1.bg.li(22).de(22) },
400402

403+
IndentLine { IblIndent },
404+
IndentLineCurrent { IblScope },
405+
401406
TelescopeSelection { CursorLine },
402407
TelescopeSelectionCaret { TelescopeSelection, fg = p.rose },
403408
TelescopeMatching { fg = p.blossom, gui = "bold" },

lua/zenbones/specs/light.lua

+10-6
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ local function generate(p, opt)
3939
WarningMsg { fg = p.wood }, -- warning messages
4040

4141
Comment { fg = p1.bg.da(opt.darken_comments or 38).de(28), gui = opt.italic_comments ~= false and "italic" or "NONE" }, -- any comment
42-
Conceal { fg = p1.fg3, gui = "bold,italic" }, -- placeholder characters substituted for concealed text (see 'conceallevel')
42+
Conceal { fg = p1.fg5, gui = "bold,italic" }, -- placeholder characters substituted for concealed text (see 'conceallevel')
4343

4444
Cursor { bg = p.fg, fg = p1.bg }, -- character under the cursor
4545
lCursor { Cursor, bg = Cursor.bg.li(20) }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
@@ -126,9 +126,9 @@ local function generate(p, opt)
126126
Constant { fg = p1.fg4, gui = "italic" }, -- (preferred) any constant
127127
String { Constant }, -- a string constant: "this is a string"
128128
Character { Constant }, -- a character constant: 'c', '\n'
129-
Number { fg = p.fg, gui = "italic" }, -- a number constant: 234, 0xff
130-
Boolean { Number }, -- a boolean constant: TRUE, false
131-
Float { Constant }, -- a floating point constant: 2.3e10
129+
Number { fg = p1.fg4 }, -- a number constant: 234, 0xff
130+
Boolean { fg = p.fg, gui = "italic" }, -- a boolean constant: TRUE, false
131+
Float { Number }, -- a floating point constant: 2.3e10
132132

133133
Identifier { fg = p1.fg2 }, -- (preferred) any variable name
134134
Function { fg = p.fg }, -- function name (also: methods for classes)
@@ -214,7 +214,7 @@ local function generate(p, opt)
214214
sym "@module.builtin" { sym "@module" },
215215
sym "@label" { Statement },
216216

217-
sym "@string" { Constant },
217+
sym "@string" { String },
218218
sym "@string.documentation" { sym "@string" },
219219
sym "@string.regexp" { Constant },
220220
sym "@string.escape" { Special },
@@ -226,7 +226,7 @@ local function generate(p, opt)
226226
sym "@character" { Constant },
227227
sym "@character.special" { Special },
228228

229-
sym "@boolean" { Number },
229+
sym "@boolean" { Boolean },
230230
sym "@number" { Number },
231231
sym "@number.float" { sym "@number" },
232232

@@ -321,6 +321,8 @@ local function generate(p, opt)
321321
sym "@variable.parameter.vimdoc" { Type },
322322
sym "@label.vimdoc" { Type, gui = "bold" },
323323

324+
sym "@constructor.lua" { Delimiter },
325+
324326
-- LSP Semantic Token Groups
325327
sym "@lsp.type.boolean" { sym "@boolean" },
326328
sym "@lsp.type.builtinType" { sym "@type.builtin" },
@@ -397,6 +399,8 @@ local function generate(p, opt)
397399

398400
IblIndent { fg = p1.bg.da(6).de(20) },
399401
IblScope { fg = p1.bg.da(22).de(20) },
402+
IndentLine { IblIndent },
403+
IndentLineCurrent { IblScope },
400404

401405
TelescopeSelection { CursorLine },
402406
TelescopeSelectionCaret { TelescopeSelection, fg = p.rose },

0 commit comments

Comments
 (0)