fork/helix

git clone https://git.julia.blue/fork/helix

Krishanadd new theme keys for LSP diagnostic tags (#10064)47ef9f0c

24.07
9.6 KiB191 linesraw
1# Author: github.com/jhscheer
2#
3# This theme is an adaptation of
4# github.com/EdenEast/nightfox.nvim
5
6
7# INTERFACE
8# These scopes are used for theming the editor interface.
9
10"ui.background" = { bg = "bg1" } # Default background color.
11"ui.window" = { fg = "bg0" } # Window border between splits.
12"ui.gutter" = { fg = "fg3" } # Left gutter for diagnostics and breakpoints.
13
14"ui.text" = { fg = "fg1" } # Default text color.
15"ui.text.focus" = { bg = "sel1", fg = "fg1" } # Selection highlight in buffer-picker or file-picker.
16"ui.text.info" = { fg = "fg2", bg = "sel0" } # Info popup contents (space mode menu).
17
18"ui.cursor" = { bg = "fg3", fg = "bg1" } # Fallback cursor colour, non-primary cursors when there are multiple (shift-c).
19"ui.cursor.primary" = { bg = "fg1", fg = "bg1" } # The primary cursor when there are multiple (shift-c).
20"ui.cursor.match" = { fg = "yellow", modifiers = ["bold"] } # The matching parentheses of that under the cursor.
21
22"ui.selection" = { bg = "bg4" } # All currently selected text.
23"ui.selection.primary" = { bg = "sel1" } # The primary selection when there are multiple.
24"ui.cursorline.primary" = { bg = "bg3" } # The line of the primary cursor (if cursorline is enabled)
25# "ui.cursorline.secondary" = { } #	The lines of any other cursors (if cursorline is enabled)
26# "ui.cursorcolumn.primary" = { } #	The column of the primary cursor (if cursorcolumn is enabled)
27# "ui.cursorcolumn.secondary" = { } #	The columns of any other cursors (if cursorcolumn is enabled)
28
29"ui.linenr" = { fg = "fg3" } # Line numbers.
30"ui.linenr.selected" = { fg = "yellow", modifiers = ["bold"] } # Current line number.
31
32# "ui.virtual" = { } # Namespace for additions to the editing area.
33"ui.virtual.ruler" = { bg = "bg3" } # Vertical rulers (colored columns in editing area).
34"ui.virtual.whitespace" = { fg = "bg3" } # Whitespace markers in editing area.
35"ui.virtual.indent-guide" = { fg = "black" } # Vertical indent width guides
36"ui.virtual.inlay-hint" = { fg = "comment", bg = "bg2" } # Default style for inlay hints of all kinds
37"ui.virtual.jump-label" = { fg = "blue", modifiers = ["bold"] } # Style for virtual jump labels
38
39"ui.statusline" = { fg = "fg2", bg = "bg0" } # Status line.
40"ui.statusline.inactive" = { fg = "fg3", bg = "bg0" } # Status line in unfocused windows.
41"ui.statusline.normal" = { bg = "blue", fg = "bg0", modifiers = ["bold"] } # Statusline mode during normal mode (only if editor.color-modes is enabled)
42"ui.statusline.insert" = { bg = "green", fg = "bg0", modifiers = ["bold"] } # Statusline mode during insert mode (only if editor.color-modes is enabled)
43"ui.statusline.select" = { bg = "magenta", fg = "bg0", modifiers = ["bold"] } # Statusline mode during select mode (only if editor.color-modes is enabled)
44
45"ui.bufferline" = { fg = "fg3", bg = "bg2", underline = { style = "line" } }
46"ui.bufferline.active" = { fg = "fg2", bg = "bg4" }
47"ui.bufferline.background" = { bg = "bg0" }
48
49"ui.help" = { bg = "sel0", fg = "fg1" } # Description box for commands.
50
51"ui.menu" = { bg = "sel0", fg = "fg1" } # Code and command completion menus.
52"ui.menu.selected" = { bg = "fg3" } # Selected autocomplete item.
53"ui.menu.scroll"	= { fg = "fg3" } # fg sets thumb color, bg sets track color of scrollbar.
54
55"ui.popup" = { bg = "bg0", fg = "fg1" } # Documentation popups (space-k).
56"ui.popup.info" = { bg = "sel0", fg = "fg1" } # Info popups box (space mode menu).
57
58"markup.raw" = { fg = "magenta" } # Code block in Markdown.
59"markup.raw.inline" = { fg = "orange" } # `Inline code block` in Markdown.
60"markup.heading" = { fg = "yellow", modifiers = ["bold"] }
61"markup.list" = { fg = "magenta", modifiers = ["bold"] }
62"markup.bold" = { fg = "orange", modifiers = ["bold"] }
63"markup.italic" = { fg = "pink" }
64"markup.strikethrough" = { modifiers = ["crossed_out"] }
65"markup.link" = { fg = "yellow-bright", modifiers = ["bold"] }
66"markup.quote" = { fg = "blue" }
67
68
69# DIAGNOSTICS
70"warning" = { fg = "yellow", bg = "bg1" } # Diagnostics warning (gutter)
71"error" = { fg = "red", bg = "bg1" } # Diagnostics error (gutter)
72"info" = { fg = "blue", bg = "bg1" } # Diagnostics info (gutter)
73"hint" = { fg = "green", bg = "bg1" } # Diagnostics hint (gutter)
74
75"diagnostic.warning" = { underline = { color = "yellow", style = "curl" } } #	Diagnostics warning (editing area)
76"diagnostic.error" = { underline = { color = "red", style = "curl" } } #	Diagnostics error (editing area)
77"diagnostic.info" = { underline = { color = "blue", style = "curl" } } #	Diagnostics info (editing area)
78"diagnostic.hint" = { underline = { color = "green", style = "curl" } } #	Diagnostics hint (editing area)
79"diagnostic.unnecessary" = { modifiers = ["dim"] }
80"diagnostic.deprecated" = { modifiers = ["crossed_out"] }
81
82
83# SYNTAX HIGHLIGHTING
84# These keys match tree-sitter scopes.
85
86"special" = { fg = "fg2" } # Special symbols e.g `?` in Rust, `...` in Hare.
87"attribute" = { fg = "yellow" } # Class attributes, html tag attributes.
88
89"type" = { fg = "yellow" } # Variable type, like integer or string, including program defined classes, structs etc..
90"type.builtin" = { fg = "cyan-bright" } # Primitive types of the language (string, int, float).
91"type.enum.variant" = { fg = "orange-bright" }
92
93"constructor" = { fg = "magenta" } # Constructor method for a class or struct.
94
95"constant" = { fg = "orange-bright" } # Constant value
96"constant.builtin" = { fg = "orange-bright" } # Special constants like `true`, `false`, `none`, etc.
97"constant.builtin.boolean" = { fg = "orange" } # True or False.
98"constant.character" = { fg = "green" } # Constant of character type.
99"constant.character.escape" = { fg = "yellow-bright", modifiers = ["bold"] } # escape codes like \n.
100"constant.numeric"  = { fg = "orange" } # constant integer or float value.
101
102"string" = { fg = "green" } # String literal.
103"string.regexp" = { fg = "yellow-bright" } # Regular expression literal.
104"string.special" = { fg = "yellow-bright", modifiers = ["bold"] } # Strings containing a path, URL, etc.
105"string.special.url" = { fg = "cyan", modifiers = ["bold"] } # String containing a web URL.
106
107"comment" = { fg = "comment" } # This is a comment.
108"comment.block.documentation" = { fg = "comment", modifiers = ["bold"] } # Doc comments, e.g '///' in rust.
109
110"variable" = { fg = "white" }  # Variable names.
111"variable.builtin" = { fg = "red" } # Language reserved variables: `this`, `self`, `super`, etc.
112"variable.parameter" = { fg = "cyan-bright" } # Function parameters.
113"variable.other.member" = { fg = "fg2" } # Fields of composite data types (e.g. structs, unions).
114
115"label" = { fg = "magenta-bright" } # lifetimes - Loop labels, among other things.
116
117"punctuation" = { fg = "fg2" } # Any punctuation symbol.
118# "punctuation.delimiter" = { fg = "fg2" } # Commas, colons or other delimiter depending on the language.
119# "punctuation.bracket" = { fg = "fg2" } # Parentheses, angle brackets, etc.
120# "punctuation.special" = { fg = "fg2" } # String interpolation brackets
121
122"keyword" = { fg = "magenta" } # Language reserved keywords.
123"keyword.control" = { fg = "pink" } # Control keywords.
124"keyword.control.conditional" = { fg = "magenta-bright" } # `if`, `else`, `elif`.
125"keyword.control.repeat" = { fg = "magenta-bright" } # `for`, `while`, `loop`.
126"keyword.control.import" = { fg = "pink-bright" } # `import`, `export` `use`.
127"keyword.control.return" = { fg = "magenta" } # `return` in most languages.
128"keyword.control.exception" = { fg = "magenta" } # `try`, `catch`, `raise`/`throw` and related.
129"keyword.operator" = { fg = "fg2", modifiers = ["bold"] } # 'or', 'and', 'in'.
130"keyword.directive" = { fg = "pink-bright" } # Preprocessor directives (#if in C...).
131"keyword.function" = { fg = "red" } # The keyword to define a function: 'def', 'fun', 'fn'.
132"keyword.storage" = { fg = "magenta" } # Keywords describing how things are stored
133"keyword.storage.type" = { fg = "magenta" } #  The type of something, class, function, var, let, etc.
134"keyword.storage.modifier" = { fg = "yellow" } # Storage modifiers like static, mut, const, ref, etc.
135
136"operator" = {  fg = "fg2" } # Logical, mathematical, and other operators.
137
138"function" = { fg = "blue-bright" }
139"function.builtin" = { fg = "red" }
140"function.macro" = { fg = "red" }
141# "function.special" = { fg = "blue-bright" } # Preprocessor function in C.
142# "function.method" = { fg = "blue-bright" } # Class / Struct methods.
143
144"tag" = { fg = "blue-bright" } # As in <body> for html, css tags.
145
146"namespace" = { fg = "cyan-bright" } # Namespace or module identifier.
147
148
149# Diff ==============================
150# Version control changes.
151
152"diff.plus" = "green" # Additions.
153"diff.minus" = "red" # Deletions.
154"diff.delta" = "blue" # Modifications.
155"diff.delta.moved" = "cyan" # Renamed or moved files.
156
157# color palette
158[palette]
159black          = "#393b44"
160red            = "#c94f6d"
161red-dim        = "#2f2837"
162green          = "#81b29a"
163green-dim      = "#26343c"
164yellow         = "#dbc074"
165yellow-bright  = "#e0c989"
166blue           = "#719cd6"
167blue-bright    = "#86abdc"
168blue-dim       = "#2f2837"
169magenta        = "#9d79d6"
170magenta-bright = "#baa1e2"
171cyan           = "#63cdcf"
172cyan-bright    = "#7ad4d6"
173cyan-dim       = "#253f4a"
174white          = "#dfdfe0"
175orange         = "#f4a261"
176orange-bright  = "#f6b079"
177pink           = "#d67ad2"
178pink-bright    = "#dc8ed9"
179comment        = "#738091"
180# spec
181bg0            = "#131a24" # Dark bg (status line and float)
182bg1            = "#192330" # Default bg
183bg2            = "#212e3f" # Lighter bg (colorcolm folds)
184bg3            = "#29394f" # Lighter bg (cursor line)
185bg4            = "#39506d" # Conceal, border fg
186fg0            = "#d6d6d7" # Lighter fg
187fg1            = "#cdcecf" # Default fg
188fg2            = "#aeafb0" # Darker fg (status line)
189fg3            = "#71839b" # Darker fg (line numbers, fold columns)
190sel0           = "#2b3b51" # Popup bg, visual selection bg
191sel1           = "#3c5372" # Popup sel bg, search bg