Skip to content

Commit 2c916c8

Browse files
committed
feat: add basic colors
1 parent 29aa932 commit 2c916c8

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

Diff for: colors/chester.nvim.lua renamed to colors/chstr.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-- You probably always want to set this in your vim file
22
vim.opt.background = 'dark'
3-
vim.g.colors_name = 'chester.nvim'
3+
vim.g.colors_name = 'chstr'
44

55
-- By setting our module to nil, we clear lua's cache,
66
-- which means the require ahead will *always* occur.
@@ -14,8 +14,8 @@ vim.g.colors_name = 'chester.nvim'
1414
--
1515
-- The performance impact of this call can be measured in the hundreds of
1616
-- *nanoseconds* and such could be considered "production safe".
17-
package.loaded['lush_theme.chester.nvim'] = nil
17+
package.loaded['lush_theme.chstr'] = nil
1818

1919
-- include our theme file and pass it to lush to apply
20-
require('lush')(require('lush_theme.chester.nvim'))
20+
require('lush')(require('lush_theme.chstr'))
2121

Diff for: lua/lush_theme/chester.nvim.lua renamed to lua/lush_theme/chstr.lua

+23-23
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ local theme = lush(function(injected_functions)
9696
-- MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display'
9797
-- MoreMsg { }, -- |more-prompt|
9898
-- NonText { }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
99-
-- Normal { }, -- Normal text
99+
Normal { bg = hsl("#2c3643"), fg = hsl("#ffffff") }, -- Normal text
100100
-- NormalFloat { }, -- Normal text in floating windows.
101101
-- FloatBorder { }, -- Border of floating windows.
102102
-- FloatTitle { }, -- Title of floating windows.
@@ -140,23 +140,23 @@ local theme = lush(function(injected_functions)
140140
--
141141
-- Uncomment and edit if you want more specific syntax highlighting.
142142

143-
-- Comment { }, -- Any comment
143+
Comment { fg = hsl("#8f8f8f") }, -- Any comment
144144

145145
-- Constant { }, -- (*) Any constant
146-
-- String { }, -- A string constant: "this is a string"
147-
-- Character { }, -- A character constant: 'c', '\n'
148-
-- Number { }, -- A number constant: 234, 0xff
149-
-- Boolean { }, -- A boolean constant: TRUE, false
150-
-- Float { }, -- A floating point constant: 2.3e10
146+
String { fg = hsl("#16c98d") }, -- A string constant: "this is a string"
147+
Character { fg = hsl("#18dd9c") }, -- A character constant: 'c', '\n'
148+
Number { fg = hsl("#ffc83f") }, -- A number constant: 234, 0xff
149+
Float { fg = Number.fg }, -- A floating point constant: 2.3e10
150+
Boolean { fg = hsl("#ff9f3f"), bold = true }, -- A boolean constant: TRUE, false
151151

152-
-- Identifier { }, -- (*) Any variable name
153-
-- Function { }, -- Function name (also: methods for classes)
152+
Identifier { fg = hsl("#28b9d6") }, -- (*) Any variable name
153+
Function { fg = hsl("#288ad6") }, -- Function name (also: methods for classes)
154154

155-
-- Statement { }, -- (*) Any statement
155+
Statement { fg = hsl("#eb94bb") }, -- (*) Any statement
156156
-- Conditional { }, -- if, then, else, endif, switch, etc.
157157
-- Repeat { }, -- for, do, while, etc.
158158
-- Label { }, -- case, default, etc.
159-
-- Operator { }, -- "sizeof", "+", "*", etc.
159+
Operator { fg = hsl("#fa5e5b") }, -- "sizeof", "+", "*", etc.
160160
-- Keyword { }, -- any other keyword
161161
-- Exception { }, -- try, catch, throw
162162

@@ -171,12 +171,12 @@ local theme = lush(function(injected_functions)
171171
-- Structure { }, -- struct, union, enum, etc.
172172
-- Typedef { }, -- A typedef
173173

174-
-- Special { }, -- (*) Any special symbol
174+
Special { fg = hsl("#eb94bb")}, -- (*) Any special symbol
175175
-- SpecialChar { }, -- Special character in a constant
176176
-- Tag { }, -- You can use CTRL-] on this
177-
-- Delimiter { }, -- Character that needs attention
178177
-- SpecialComment { }, -- Special things inside a comment (e.g. '\n')
179178
-- Debug { }, -- Debugging statements
179+
Delimiter { fg = Normal.fg }, -- Character that needs attention
180180

181181
-- Underlined { gui = "underline" }, -- Text that stands out, HTML links
182182
-- Ignore { }, -- Left blank, hidden |hl-Ignore| (NOTE: May be invisible here in template)
@@ -198,21 +198,21 @@ local theme = lush(function(injected_functions)
198198

199199
-- See :h diagnostic-highlights, some groups may not be listed, submit a PR fix to lush-template!
200200
--
201-
-- DiagnosticError { } , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
202-
-- DiagnosticWarn { } , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
203-
-- DiagnosticInfo { } , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
204-
-- DiagnosticHint { } , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
205-
-- DiagnosticOk { } , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
201+
DiagnosticError { fg = hsl("#fa5e5b") } , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
202+
DiagnosticWarn { fg = hsl("#ff9f3f") } , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
203+
DiagnosticInfo { fg = hsl("#28b9d6") } , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
204+
DiagnosticHint { fg = hsl("#288ad6") } , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
205+
DiagnosticOk { fg = hsl("#18dd9c") } , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
206206
-- DiagnosticVirtualTextError { } , -- Used for "Error" diagnostic virtual text.
207207
-- DiagnosticVirtualTextWarn { } , -- Used for "Warn" diagnostic virtual text.
208208
-- DiagnosticVirtualTextInfo { } , -- Used for "Info" diagnostic virtual text.
209209
-- DiagnosticVirtualTextHint { } , -- Used for "Hint" diagnostic virtual text.
210210
-- DiagnosticVirtualTextOk { } , -- Used for "Ok" diagnostic virtual text.
211-
-- DiagnosticUnderlineError { } , -- Used to underline "Error" diagnostics.
212-
-- DiagnosticUnderlineWarn { } , -- Used to underline "Warn" diagnostics.
213-
-- DiagnosticUnderlineInfo { } , -- Used to underline "Info" diagnostics.
214-
-- DiagnosticUnderlineHint { } , -- Used to underline "Hint" diagnostics.
215-
-- DiagnosticUnderlineOk { } , -- Used to underline "Ok" diagnostics.
211+
DiagnosticUnderlineError { sp = DiagnosticError.fg, underline = true } , -- Used to underline "Error" diagnostics.
212+
DiagnosticUnderlineWarn { sp = DiagnosticWarn.fg, underline = true } , -- Used to underline "Warn" diagnostics.
213+
DiagnosticUnderlineInfo { sp = DiagnosticInfo.fg, underline = true } , -- Used to underline "Info" diagnostics.
214+
DiagnosticUnderlineHint { sp = DiagnosticHint.fg, underline = true } , -- Used to underline "Hint" diagnostics.
215+
DiagnosticUnderlineOk { sp = DiagnosticOk.fg, underline = true } , -- Used to underline "Ok" diagnostics.
216216
-- DiagnosticFloatingError { } , -- Used to color "Error" diagnostic messages in diagnostics float. See |vim.diagnostic.open_float()|
217217
-- DiagnosticFloatingWarn { } , -- Used to color "Warn" diagnostic messages in diagnostics float.
218218
-- DiagnosticFloatingInfo { } , -- Used to color "Info" diagnostic messages in diagnostics float.

0 commit comments

Comments
 (0)