Skip to content

Commit 1ac520f

Browse files
committed
fix(ts): use delimiter for @constructor.lua
1 parent e9ba830 commit 1ac520f

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

lua/zenbones/specs/dark.lua

+5
Original file line numberDiff line numberDiff line change
@@ -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

+9-7
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ 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')
43-
4442
Cursor { bg = p.fg, fg = p1.bg }, -- character under the cursor
4543
lCursor { Cursor, bg = Cursor.bg.li(20) }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
4644
-- CursorIM { }, -- like Cursor, but used when in IME mode |CursorIM|
@@ -126,9 +124,9 @@ local function generate(p, opt)
126124
Constant { fg = p1.fg4, gui = "italic" }, -- (preferred) any constant
127125
String { Constant }, -- a string constant: "this is a string"
128126
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
127+
Number { fg = p1.fg4 }, -- a number constant: 234, 0xff
128+
Boolean { fg = p.fg, gui = "italic" }, -- a boolean constant: TRUE, false
129+
Float { Number }, -- a floating point constant: 2.3e10
132130

133131
Identifier { fg = p1.fg2 }, -- (preferred) any variable name
134132
Function { fg = p.fg }, -- function name (also: methods for classes)
@@ -214,7 +212,7 @@ local function generate(p, opt)
214212
sym "@module.builtin" { sym "@module" },
215213
sym "@label" { Statement },
216214

217-
sym "@string" { Constant },
215+
sym "@string" { String },
218216
sym "@string.documentation" { sym "@string" },
219217
sym "@string.regexp" { Constant },
220218
sym "@string.escape" { Special },
@@ -226,7 +224,7 @@ local function generate(p, opt)
226224
sym "@character" { Constant },
227225
sym "@character.special" { Special },
228226

229-
sym "@boolean" { Number },
227+
sym "@boolean" { Boolean },
230228
sym "@number" { Number },
231229
sym "@number.float" { sym "@number" },
232230

@@ -321,6 +319,8 @@ local function generate(p, opt)
321319
sym "@variable.parameter.vimdoc" { Type },
322320
sym "@label.vimdoc" { Type, gui = "bold" },
323321

322+
sym "@constructor.lua" { Delimiter },
323+
324324
-- LSP Semantic Token Groups
325325
sym "@lsp.type.boolean" { sym "@boolean" },
326326
sym "@lsp.type.builtinType" { sym "@type.builtin" },
@@ -397,6 +397,8 @@ local function generate(p, opt)
397397

398398
IblIndent { fg = p1.bg.da(6).de(20) },
399399
IblScope { fg = p1.bg.da(22).de(20) },
400+
IndentLine { IblIndent },
401+
IndentLineCurrent { IblScope },
400402

401403
TelescopeSelection { CursorLine },
402404
TelescopeSelectionCaret { TelescopeSelection, fg = p.rose },

0 commit comments

Comments
 (0)