fork/helix

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

emilylimeImprove readability of virtual text with 'noctis' theme (#10910)a64dbf82

24.07
10.3 KiB212 linesraw
1# Author : 0rphee <0rph3e@proton.me>
2
3# Template written with the help of https://github.com/n0s4/helix-theme-template
4# Keep in mind that I made this to fit Haskell and Python syntax, it may not work so well with other languages.
5
6## GENERAL ==============================
7
8'property' = { fg = "red" } # Regex group names.
9"warning" = { fg ="yellow", modifiers = ["bold"] } # Editor warnings.
10"error" = { fg = "red", modifiers = ["bold"] } # Editor errors, like mis-typing a command.
11"info" = { fg = "mid-blue" } # Code diagnostic info in gutter (LSP).
12# ? Difference between info and hint ?
13"hint" = { fg = "light-green", modifiers = ["bold"] } # Code diagnostics hint in gutter (LSP).
14
15# Code diagnostics in editing area (LSP).
16"diagnostic.warning" = { underline = { color = "yellow", style = "curl" } }
17"diagnostic.error" = { underline = { color = "red", style = "curl" } }
18"diagnostic.info" = { underline = { color = "mid-blue", style = "curl" } }
19"diagnostic.hint" = { underline = { color = "light-green", style = "curl" } }
20"diagnostic.unnecessary" = { modifiers = ["dim"] }
21"diagnostic.deprecated" = { modifiers = ["crossed_out"] }
22
23# UI ==============================
24# For styling helix itself.
25
26'ui.background' = { fg = "autocomp-green", bg = "dark-green" } # Default background color.
27'ui.window' = { fg = "mid-green" } # Window border between splits.
28
29'ui.gutter' = { } # Left gutter for diagnostics and breakpoints.
30
31'ui.text' = { fg = "white" } # Default text color.
32'ui.text.focus' = { fg = "white", bg = "mid-green", modifiers = ["bold"] } # Selection highlight in buffer-picker or file-picker.
33'ui.text.info' = { fg = "white" } # Info popup contents (space mode menu).
34
35'ui.cursor' = { fg = "dark-green", bg = "white" } # Fallback cursor colour, non-primary cursors when there are multiple (shift-c).
36'ui.cursor.primary' = { fg = "dark-green", bg = "light-blue" } # The primary cursor when there are multiple (shift-c).
37'ui.cursor.insert' = { fg = "dark-green", bg = "light-blue" } # The cursor in insert mode (i).
38'ui.cursor.select' = { fg = "dark-green", bg = "light-blue" } # The cursor in select mode (v).
39'ui.cursor.match' = { fg = "dark-green", bg = "red", modifiers = ["bold"] } # The matching parentheses of that under the cursor.
40
41'ui.selection' = { bg = "autocomp-green" } # All currently selected text.
42'ui.selection.primary' = { bg = "autocomp-green" } # The primary selection when there are multiple.
43'ui.cursorline.primary' = { bg = 'mid-green' }
44
45'ui.linenr' = {  fg = "gray"  } # Line numbers.
46'ui.linenr.selected' = { fg = "light-green", modifiers = [ "bold" ] } # Current line number.
47
48'ui.virtual' = { fg = "autocomp-green" } # Namespace for additions to the editing area.
49'ui.virtual.ruler' = { bg = "mid-green" } # Vertical rulers (colored columns in editing area).
50'ui.virtual.whitespace' = { fg = "mid-green"} # Whitespace markers in editing area.
51'ui.virtual.inlay-hint' = { fg = "autocomp-green" } # LSP inlay hints
52'ui.virtual.indent-guide' = { fg = "mid-green" } # Indentation guides.
53'ui.virtual.wrap' = { fg = "mid-green"} # Soft-wrap indicators
54'ui.virtual.jump-label' = { fg = "autocomp-green", modifiers = [ "bold" ] } # Word-jump labels
55
56'ui.statusline' = { fg = "light-green", bg = "autocomp-green"} # Status line.
57'ui.statusline.inactive' = { fg = "white", bg = "mid-green"} # Status line in unfocused windows.
58
59"ui.statusline.normal" = { fg = "dark-green", bg = "mid-blue", modifiers = [ "bold" ] }
60"ui.statusline.insert" = { fg = "dark-green", bg = "pink", modifiers = [ "bold" ] }
61"ui.statusline.select" = { fg = "dark-green", bg = "yellow", modifiers = [ "bold" ] }
62
63'ui.help' = { bg = "mid-green", fg = "white"} # `:command` descriptions above the command line.
64
65'ui.highlight' = { bg = "mid-green"} # selected contents of symbol pickers (spc-s, spc-S) and current line in buffer picker (spc-b).
66
67'ui.menu' = { fg = "white", bg = "mid-green" } # Autocomplete menu.
68'ui.menu.selected' = { fg = "light-green", bg = "autocomp-green" } # Selected autocomplete item.
69
70'ui.popup' = { bg = "mid-green" } # Documentation popups (space-k).
71# 'ui.ppopup.info' = { bg = "midgreen", fg = "gray", modifiers = ["bold"] } # Info popups box (space mode menu).
72
73# SYNTAX HIGHLIGHTING ==============================
74# All the keys here are Treesitter scopes.
75
76'special' = { fg = "mid-blue"} # Special symbols e.g `?` in Rust, `...` in Hare.
77'attribute' = { fg = "yellow" } # Class attributes, html tag attributes.
78
79'type' = { fg = "orange"} # Variable type, like integer or string, including program defined classes, structs etc..
80#'type.builtin' = { } # Primitive types of the language (string, int, float).
81#'type.enum.variant' = { } # A variant of an enum.
82
83'constructor' = { fg = "light-blue", modifiers = ["bold"]} # Constructor method for a class or struct. And in some cases applies to module names
84
85'constant' = { fg = "light-blue", modifiers = ["bold"] } # Constant value
86'constant.builtin' = { fg = "mid-blue", modifiers = ["bold"] } # Special constants like `true`, `false`, `none`, etc.
87'constant.builtin.boolean' = { } # True or False.
88'constant.character' = { fg = "light-green"} # Constant of character type.
89'constant.character.escape' = { fg = "purple", modifiers = ["bold"] } # escape codes like \n.
90'constant.numeric'  = { fg = "purple"} # constant integer or float value.
91# 'constant.numeric.integer' = { } # constant integer value.
92# 'constant.numeric.float' = { } # constant float value.
93
94'string' = { fg = "light-green" } # String literal.
95'string.regexp' = { } # Regular expression literal.
96'string.special' = { fg = "red" } # Strings containing a path, URL, etc.
97# 'string.special.path' = { } # String containing a file path.
98# 'string.special.url' = { } # String containing a web URL.
99# 'string.special.symbol' = { } # Erlang/Elixir atoms, Ruby symbols, Clojure keywords.
100
101'comment' = { fg = "gray", modifiers = ["italic"] } # This is a comment.
102'comment.line' = { } # Line comments, like this.
103'comment.block' = { } # Block comments, like /* this */ in some languages.
104'comment.block.documentation' = { } # Doc comments, e.g '///' in rust.
105
106'variable' = { fg = "light-orange" }  # Variable names.
107# 'variable.builtin' = { } # Language reserved variables: `this`, `self`, `super`, etc.
108# 'variable.parameter' = { } # Function parameters.
109'variable.other.member' = { fg = "orange" } # Fields of composite data types (e.g. structs, unions).
110
111'label' = { fg = "purple" } # Loop labels in rust.
112
113'punctuation' =  { fg = "yellow", modifiers = ["bold"] } # (){}[]:;,.
114# 'punctuation.delimiter' = { fg = "yellow" } # Commas and colons.
115# 'punctuation.bracket' = { fg = "yellow" } # Parentheses, angle brackets, etc.
116
117'keyword' = { fg = "pink", modifiers = ["bold"] } # Language reserved keywords.
118'keyword.control' = { fg = "pink", modifiers = ["bold"] } # Control keywords.
119'keyword.control.conditional' = { fg = "pink", modifiers = ["bold"] } # 'if', 'else', 'elif'.
120# 'keyword.control.repeat' = { } # 'for', 'while', 'loop'.
121'keyword.control.import' = { fg = "pink", modifiers = ["italic"] } # 'import', 'export' ('use'?).
122# 'keyword.control.return' = { } # 'return' in most languages.
123'keyword.control.exception' = {fg = "pink", modifiers = ["bold"] } # 'raise' in python.
124'keyword.operator' = { fg = "pink" } # 'or', 'and', 'in'.
125'keyword.directive' = { fg = "purple" } # Preprocessor directives (#if in C).
126'keyword.function' = { fg= "red" } # The keyword to define a function: 'def', 'fun', 'fn'.
127
128'operator' = { fg = "pink", modifiers = ["bold"] } # Logical (&&, ||) and - I assume - Mathematical (+, %) operators
129
130'function' = { fg = "mid-blue"}
131'function.builtin' = { fg = "dark-blue" }
132'function.method' = { fg = "dark-blue" } # Class / Struct methods.
133'function.macro' = { fg = "purple" } # Like macros in rust.
134# 'function.special' = { fg = "yellow" } # Preprocessor in C.
135
136'tag' = { fg = "yellow"} # As in <body> for html.
137
138'namespace' = { fg = "mid-blue" } # * Namespace keyword in java, C#, etc.
139
140# Markup ==============================
141# Colors for markup languages, like Markdown or XML.
142
143'markup.heading' = { } # Markdown headings
144'markup.heading.1' = { } # Markdown heading 1 color.
145'markup.heading.2' = { } # Markdown heading 2 color.
146'markup.heading.3' = { } # Markdown heading 3 color.
147'markup.heading.4' = { } # Markdown heading 4 color.
148'markup.heading.5' = { } # Markdown heading 5 color.
149'markup.heading.6' = { } # Markdown heading 6 color.
150'markup.heading.marker' = { fg = "red" } # Hashtag color on Markdown headings.
151
152'markup.list' = { fg = "red" }
153'markup.list.numbered' = { } # Numbered list.
154'markup.list.unnumbered' = { } # Bullet point list.
155
156'markup.bold' = { modifiers = ["bold"] } # Bold text.
157'markup.italic' = { modifiers = ["italic"] } # Italicised text.
158"markup.strikethrough" = { modifiers = ["crossed_out"] } # Crossed out text.
159
160'markup.link' = { fg = "light-blue", modifiers = ["underlined"] }
161'markup.link.url' = { } # Urls pointed to by links.
162'markup.link.label' = { } # Non-URL link references.
163'markup.link.text' = { fg = "purple"} # URL and image descriptions in links.
164
165'markup.quote' = { } # `> Quotes` in Markdown.
166
167
168# Markup - Interface ==============================
169# "These scopes are used for theming the editor interface."
170
171'markup.normal' = { }
172'markup.normal.completion' = { } # For completion doc popup ui.
173'markup.normal.raw' = { } # For hover popup ui.
174
175'markup.heading.completion' = { } # Headings for completion doc popup ui.
176'markup.heading.raw' = { } # Headings for hover popup ui.
177
178'markup.raw' = { } # Code block in Markdown.
179'markup.raw.block' = { } # Multiline (```) codeblock in Markdown.
180'markup.raw.inline' = { } # `Inline code block` in Markdown.
181'markup.raw.inline.completion' = { } # ?
182'markup.raw.inline.hover' = { } # ?
183
184# Diff ==============================
185# Version control changes.
186
187'diff.plus' = "light-green" # { } # Additions.
188'diff.minus' = "red" # { } # Deletions.
189'diff.delta' = "yellow" # { } # Modifications.
190# 'diff.delta.moved' = { } # Renamed or moved files / changes.
191
192
193[palette] # Define your custom colors here.
194dark-green = "#00262a" # backgrounds
195mid-green = "#073a40" # highlights
196autocomp-green = "#0d6772" # lighter than mid-green
197light-green = "#48e9a7" # strings
198
199pink = "#df769b"
200yellow = "#ffd800"
201purple = "#918cff"
202white = "#b1cace"
203orange = "#ffa864"
204light-orange = "#fff2c5"
205gray = "#5b858b" # mainly for comments/background text
206light-gray = "#2a3c41" # used when whitespace rendering is enabled and for indent-guides
207red = "#e34e1b"
208
209dark-blue = "#19a2b7"
210mid-blue = "#47ace8"
211light-blue = "#87efff"
212