diff options
author | Shubham Saini <ssaini@fispan.com> | 2022-09-09 23:31:41 +0000 |
---|---|---|
committer | Shubham Saini <ssaini@fispan.com> | 2022-09-09 23:31:41 +0000 |
commit | 067640ad9484989d8b27dee89c0dd530344b4a8e (patch) | |
tree | cef532adc66d0d73695f0d983af69a0e18eb7175 | |
parent | cf0f012dcfbf51282642d6b877ebdaa21d839ecc (diff) |
added plain color
-rw-r--r-- | nvim/.config/nvim/colors/plain.vim | 369 |
1 files changed, 369 insertions, 0 deletions
diff --git a/nvim/.config/nvim/colors/plain.vim b/nvim/.config/nvim/colors/plain.vim new file mode 100644 index 0000000..4b712bd --- /dev/null +++ b/nvim/.config/nvim/colors/plain.vim | |||
@@ -0,0 +1,369 @@ | |||
1 | hi clear | ||
2 | |||
3 | if exists('syntax on') | ||
4 | syntax reset | ||
5 | endif | ||
6 | |||
7 | let g:colors_name='plain' | ||
8 | |||
9 | let s:black = { "gui": "#222222", "cterm": "0" } | ||
10 | let s:medium_gray = { "gui": "#767676", "cterm": "8" } | ||
11 | let s:white = { "gui": "#F1F1F1", "cterm": "7" } | ||
12 | let s:actual_white = { "gui": "#FFFFFF", "cterm": "15" } | ||
13 | let s:light_black = { "gui": "#424242", "cterm": "11" } | ||
14 | let s:lighter_black = { "gui": "#545454", "cterm": "12" } | ||
15 | let s:subtle_black = { "gui": "#303030", "cterm": "11" } | ||
16 | let s:light_gray = { "gui": "#999999", "cterm": "12" } | ||
17 | let s:lighter_gray = { "gui": "#CCCCCC", "cterm": "7" } | ||
18 | let s:lightest_gray = { "gui": "#E5E5E5", "cterm": "13" } | ||
19 | let s:pink = { "gui": "#FB007A", "cterm": "5" } | ||
20 | let s:dark_red = { "gui": "#C30771", "cterm": "1" } | ||
21 | let s:light_red = { "gui": "#E32791", "cterm": "1" } | ||
22 | let s:orange = { "gui": "#D75F5F", "cterm": "9" } | ||
23 | let s:darker_blue = { "gui": "#005F87", "cterm": "4" } | ||
24 | let s:dark_blue = { "gui": "#008EC4", "cterm": "4" } | ||
25 | let s:blue = { "gui": "#20BBFC", "cterm": "4" } | ||
26 | let s:light_blue = { "gui": "#B6D6FD", "cterm": "4" } | ||
27 | let s:dark_cyan = { "gui": "#20A5BA", "cterm": "6" } | ||
28 | let s:light_cyan = { "gui": "#4FB8CC", "cterm": "6" } | ||
29 | let s:dark_green = { "gui": "#10A778", "cterm": "6" } | ||
30 | let s:light_green = { "gui": "#5FD7A7", "cterm": "6" } | ||
31 | let s:dark_purple = { "gui": "#523C79", "cterm": "5" } | ||
32 | let s:light_purple = { "gui": "#6855DE", "cterm": "5" } | ||
33 | let s:light_yellow = { "gui": "#F3E430", "cterm": "3" } | ||
34 | let s:dark_yellow = { "gui": "#A89C14", "cterm": "3" } | ||
35 | |||
36 | if &background == "dark" | ||
37 | let s:bg = s:white | ||
38 | let s:bg_subtle = s:lighter_gray | ||
39 | let s:bg_very_subtle = s:light_gray | ||
40 | let s:norm = s:light_black | ||
41 | let s:norm_subtle = s:lighter_black | ||
42 | let s:purple = s:dark_purple | ||
43 | let s:cyan = s:dark_cyan | ||
44 | let s:green = s:dark_green | ||
45 | let s:red = s:dark_red | ||
46 | let s:yellow = s:dark_yellow | ||
47 | let s:visual = s:light_blue | ||
48 | let s:cursor_line = s:medium_gray | ||
49 | let s:status_line = s:lighter_gray | ||
50 | let s:status_line_nc = s:lighter_black | ||
51 | let s:constant = s:dark_blue | ||
52 | let s:comment = s:light_gray | ||
53 | let s:selection = s:light_yellow | ||
54 | let s:warning = s:yellow | ||
55 | else | ||
56 | let s:bg = s:black | ||
57 | let s:bg_subtle = s:light_black | ||
58 | let s:bg_very_subtle = s:subtle_black | ||
59 | let s:norm = s:lighter_gray | ||
60 | let s:norm_subtle = s:light_gray | ||
61 | let s:purple = s:light_purple | ||
62 | let s:cyan = s:light_cyan | ||
63 | let s:green = s:light_green | ||
64 | let s:red = s:light_red | ||
65 | let s:yellow = s:light_yellow | ||
66 | let s:visual = s:subtle_black | ||
67 | let s:cursor_line = s:subtle_black | ||
68 | let s:status_line = s:lighter_black | ||
69 | let s:status_line_nc = s:subtle_black | ||
70 | let s:constant = s:light_green | ||
71 | let s:comment = s:lighter_black | ||
72 | let s:selection = s:light_purple | ||
73 | let s:warning = s:yellow | ||
74 | endif | ||
75 | |||
76 | " https://github.com/noahfrederick/vim-hemisu/ | ||
77 | function! s:h(group, style) | ||
78 | execute "highlight" a:group | ||
79 | \ "guifg=" (has_key(a:style, "fg") ? a:style.fg.gui : "NONE") | ||
80 | \ "guibg=" (has_key(a:style, "bg") ? a:style.bg.gui : "NONE") | ||
81 | \ "guisp=" (has_key(a:style, "sp") ? a:style.sp.gui : "NONE") | ||
82 | \ "gui=" (has_key(a:style, "gui") ? a:style.gui : "NONE") | ||
83 | \ "ctermfg=" (has_key(a:style, "fg") ? a:style.fg.cterm : "NONE") | ||
84 | \ "ctermbg=" (has_key(a:style, "bg") ? a:style.bg.cterm : "NONE") | ||
85 | \ "cterm=" (has_key(a:style, "cterm") ? a:style.cterm : "NONE") | ||
86 | endfunction | ||
87 | |||
88 | call s:h("firstAccent", {"fg": s:cyan}) | ||
89 | call s:h("secondAccent", {"fg": s:purple}) | ||
90 | |||
91 | call s:h("Normal", {"fg": s:norm,}) | ||
92 | call s:h("Noise", {"fg": s:norm_subtle}) | ||
93 | call s:h("Cursor", {"bg": s:green, "fg": s:norm}) | ||
94 | call s:h("Comment", {"fg": s:comment, "cterm": "italic"}) | ||
95 | call s:h("Function", {"fg": s:norm, "cterm": "bold"}) | ||
96 | call s:h("FloatWin", {"fg": s:norm, "bg": s:black}) | ||
97 | |||
98 | hi! link Constant firstAccent | ||
99 | hi! link Character Constant | ||
100 | hi! link Number Constant | ||
101 | hi! link Boolean Constant | ||
102 | hi! link Float Constant | ||
103 | hi! link String Constant | ||
104 | |||
105 | "call s:h("Identifier", {"fg": s:dark_blue}) | ||
106 | hi! link Identifier Normal | ||
107 | |||
108 | "hi! link Statement Normal | ||
109 | call s:h("Statement", {"fg": s:norm, "cterm": "bold"}) | ||
110 | hi! link Conditonal Statement | ||
111 | hi! link Repeat Statement | ||
112 | hi! link Label Statement | ||
113 | hi! link Operator Noise | ||
114 | hi! link Keyword Statement | ||
115 | hi! link Exception Statement | ||
116 | |||
117 | "call s:h("PreProc", {"fg": s:red}) | ||
118 | hi! link PreProc Normal | ||
119 | hi! link Include Statement | ||
120 | hi! link Define PreProc | ||
121 | hi! link Macro PreProc | ||
122 | hi! link PreCondit PreProc | ||
123 | |||
124 | "call s:h("Type", {"fg": s:purple}) | ||
125 | hi! link Type secondAccent | ||
126 | hi! link StorageClass Type | ||
127 | hi! link Structure Noise | ||
128 | hi! link Typedef Noise | ||
129 | |||
130 | "call s:h("Special", {"fg": s:pink}) | ||
131 | hi! link Special StatusLine | ||
132 | hi! link SpecialChar Special | ||
133 | hi! link Tag Special | ||
134 | hi! link Delimiter Special | ||
135 | hi! link SpecialComment Special | ||
136 | hi! link Debug Special | ||
137 | |||
138 | hi! link Conceal NonText | ||
139 | |||
140 | call s:h("Underlined", {"fg": s:norm, "gui": "underline", "cterm": "underline"}) | ||
141 | call s:h("Ignore", {"fg": s:bg}) | ||
142 | call s:h("Error", {"fg": s:red, "cterm": "bold"}) | ||
143 | call s:h("Todo", {"fg": s:actual_white, "bg": s:black, "gui": "bold", "cterm": "bold"}) | ||
144 | call s:h("SpecialKey", {"fg": s:subtle_black}) | ||
145 | call s:h("NonText", {"fg": s:bg_very_subtle}) | ||
146 | call s:h("Directory", {"fg": s:dark_green}) | ||
147 | call s:h("ErrorMsg", {"fg": s:pink}) | ||
148 | call s:h("IncSearch", {"bg": s:selection, "fg": s:black}) | ||
149 | call s:h("Search", {"bg": s:selection, "fg": s:black}) | ||
150 | call s:h("MoreMsg", {"fg": s:medium_gray, "cterm": "bold", "gui": "bold"}) | ||
151 | hi! link ModeMsg MoreMsg | ||
152 | call s:h("LineNr", {"fg": s:medium_gray}) | ||
153 | call s:h("CursorLineNr", {"fg": s:green, "bg": s:bg_very_subtle}) | ||
154 | call s:h("Question", {"fg": s:red}) | ||
155 | call s:h("VertSplit", {"bg": s:bg, "fg": s:bg_very_subtle}) | ||
156 | call s:h("Title", {"fg": s:dark_green}) | ||
157 | call s:h("Visual", {"bg": s:visual}) | ||
158 | call s:h("VisualNOS", {"bg": s:bg_subtle}) | ||
159 | call s:h("WarningMsg", {"fg": s:warning}) | ||
160 | call s:h("WildMenu", {"fg": s:white, "bg": s:bg}) | ||
161 | call s:h("Folded", {"fg": s:medium_gray}) | ||
162 | call s:h("FoldColumn", {"fg": s:bg_subtle}) | ||
163 | call s:h("DiffAdd", {"fg": s:green}) | ||
164 | call s:h("DiffDelete", {"fg": s:red}) | ||
165 | call s:h("DiffChange", {"fg": s:dark_yellow}) | ||
166 | call s:h("DiffText", {"fg": s:dark_green}) | ||
167 | call s:h("SignColumn", {"fg": s:medium_gray}) | ||
168 | |||
169 | if has("gui_running") | ||
170 | call s:h("SpellBad", {"gui": "underline", "sp": s:red}) | ||
171 | call s:h("SpellCap", {"gui": "underline", "sp": s:light_green}) | ||
172 | call s:h("SpellRare", {"gui": "underline", "sp": s:pink}) | ||
173 | call s:h("SpellLocal", {"gui": "underline", "sp": s:dark_green}) | ||
174 | else | ||
175 | call s:h("SpellBad", {"cterm": "underline", "fg": s:red}) | ||
176 | call s:h("SpellCap", {"cterm": "underline", "fg": s:light_green}) | ||
177 | call s:h("SpellRare", {"cterm": "underline", "fg": s:pink}) | ||
178 | call s:h("SpellLocal", {"cterm": "underline", "fg": s:dark_green}) | ||
179 | endif | ||
180 | |||
181 | """ Help | ||
182 | hi link helpHyperTextEntry Title | ||
183 | hi link helpHyperTextJump String | ||
184 | |||
185 | """ StatusLine | ||
186 | |||
187 | call s:h("StatusLine", {"fg": s:status_line}) | ||
188 | call s:h("StatusLineNC", {"fg": s:status_line_nc}) | ||
189 | |||
190 | " Those are not standard but are useful to emphasis different parts of the | ||
191 | " status line. | ||
192 | call s:h("StatusLineOk", {"gui": "underline", "bg": s:bg, "fg": s:green}) | ||
193 | call s:h("StatusLineError", {"gui": "underline", "bg": s:bg, "fg": s:pink}) | ||
194 | call s:h("StatusLineWarning", {"gui": "underline", "bg": s:bg, "fg": s:warning}) | ||
195 | |||
196 | call s:h("Pmenu", {"fg": s:norm, "bg": s:bg_subtle}) | ||
197 | call s:h("PmenuSel", {"fg": s:green, "bg": s:bg_very_subtle, "gui": "bold"}) | ||
198 | call s:h("PmenuSbar", {"fg": s:norm, "bg": s:bg_subtle}) | ||
199 | call s:h("PmenuThumb", {"fg": s:norm, "bg": s:bg_subtle}) | ||
200 | call s:h("TabLine", {"fg": s:norm_subtle, "bg": s:bg}) | ||
201 | call s:h("TabLineSel", {"fg": s:norm, "bg": s:bg, "gui": "bold", "cterm": "bold"}) | ||
202 | call s:h("TabLineFill", {"fg": s:norm_subtle, "bg": s:bg}) | ||
203 | call s:h("CursorColumn", {"bg": s:bg_very_subtle}) | ||
204 | call s:h("CursorLine", {"bg": s:cursor_line}) | ||
205 | call s:h("ColorColumn", {"bg": s:bg_subtle}) | ||
206 | |||
207 | call s:h("MatchParen", {"bg": s:bg_very_subtle, "fg": s:norm}) | ||
208 | hi link qfLineNr secondAccent | ||
209 | hi link qfFileName firstAccent | ||
210 | |||
211 | call s:h("htmlH1", {"fg": s:norm}) | ||
212 | call s:h("htmlH2", {"fg": s:norm}) | ||
213 | call s:h("htmlH3", {"fg": s:norm}) | ||
214 | call s:h("htmlH4", {"fg": s:norm}) | ||
215 | call s:h("htmlH5", {"fg": s:norm}) | ||
216 | call s:h("htmlH6", {"fg": s:norm}) | ||
217 | |||
218 | call s:h("htmlBold", {"fg": s:norm}) | ||
219 | call s:h("htmlItalic", {"fg": s:norm}) | ||
220 | call s:h("htmlEndTag", {"fg": s:norm}) | ||
221 | call s:h("htmlTag", {"fg": s:norm}) | ||
222 | call s:h("htmlTagName", {"fg": s:norm}) | ||
223 | call s:h("htmlArg", {"fg": s:norm}) | ||
224 | call s:h("htmlError", {"fg": s:red}) | ||
225 | |||
226 | " JavaScript highlighting | ||
227 | " | ||
228 | call s:h("javaScript", {"bg": s:bg, "fg": s:norm}) | ||
229 | call s:h("javaScriptBraces", {"bg": s:bg, "fg": s:norm}) | ||
230 | call s:h("javaScriptNumber", {"bg": s:bg, "fg": s:green}) | ||
231 | |||
232 | hi link diffRemoved DiffDelete | ||
233 | hi link diffAdded DiffAdd | ||
234 | |||
235 | hi link TSAnnotation secondAccent | ||
236 | " unstable for now: | ||
237 | hi link TSAttribute secondAccent | ||
238 | hi link TSBoolean Constant | ||
239 | hi link TSCharacter Constant | ||
240 | hi link TSComment Comment | ||
241 | hi link TSConstructor Normal | ||
242 | hi link TSConditional Statement | ||
243 | hi link TSConstant Constant | ||
244 | hi link TSConstBuiltin secondAccent | ||
245 | hi link TSConstMacro secondAccent | ||
246 | hi link TSError Error | ||
247 | hi link TSException Error | ||
248 | hi link TSField Normal | ||
249 | hi link TSFloat Constant | ||
250 | hi link TSFunction Normal | ||
251 | hi link TSFuncBuiltin secondAccent | ||
252 | hi link TSFuncMacro secondAccent | ||
253 | hi link TSInclude Noise | ||
254 | hi link TSKeyword Statement | ||
255 | hi link TSKeywordFunction Statement | ||
256 | hi link TSLabel Noise | ||
257 | hi link TSMethod Normal | ||
258 | hi link TSNamespace Noise | ||
259 | hi link TSNone Noise | ||
260 | hi link TSNumber Constant | ||
261 | hi link TSOperator Normal | ||
262 | hi link TSParameter Noise | ||
263 | hi link TSParameterReference Statement | ||
264 | hi link TSProperty TSField | ||
265 | hi link TSPunctDelimiter Noise | ||
266 | hi link TSPunctBracket Noise | ||
267 | hi link TSPunctSpecial Noise | ||
268 | hi link TSRepeat Normal | ||
269 | hi link TSString Constant | ||
270 | hi link TSStringRegex secondAccent | ||
271 | hi link TSStringEscape secondAccent | ||
272 | hi link TSTag Statement | ||
273 | hi link TSTagDelimiter Noise | ||
274 | hi link TSText Normal | ||
275 | hi link TSEmphasis Statement | ||
276 | hi link TSUnderline Underlined | ||
277 | hi link TSStrike Underlined | ||
278 | hi link TSTitle Statement | ||
279 | hi link TSLiteral Noise | ||
280 | hi link TSURI Constant | ||
281 | hi link TSType Noise | ||
282 | hi link TSTypeBuiltin secondAccent | ||
283 | hi link TSVariable Normal | ||
284 | hi link TSVariableBuiltin Normal | ||
285 | hi link TSRepeat Statement | ||
286 | |||
287 | " nvim-lsp diagnostics | ||
288 | hi link LspDiagnosticsDefaultError Error | ||
289 | hi link LspDiagnosticsDefaultWarning WarningMsg | ||
290 | hi link LspDiagnosticsDefaultInformation Noise | ||
291 | hi link LspDiagnosticsDefaultHint Constant | ||
292 | |||
293 | " Signify, git-gutter | ||
294 | hi link SignifySignAdd LineNr | ||
295 | hi link SignifySignDelete LineNr | ||
296 | hi link SignifySignChange LineNr | ||
297 | hi link GitGutterAdd LineNr | ||
298 | hi link GitGutterDelete LineNr | ||
299 | hi link GitGutterChange LineNr | ||
300 | hi link GitGutterChangeDelete LineNr | ||
301 | |||
302 | hi link jsFlowTypeKeyword Statement | ||
303 | hi link jsFlowImportType Statement | ||
304 | hi link jsFunction Function | ||
305 | hi link jsGlobalObjects Noise | ||
306 | hi link jsGlobalNodeObjects Normal | ||
307 | hi link jsSwitchCase Constant | ||
308 | |||
309 | call s:h("jsSpreadOperator ", {"bg": s:bg, "fg": s:selection}) | ||
310 | hi link jsReturn jsSpreadOperator | ||
311 | hi link jsExport jsSpreadOperator | ||
312 | |||
313 | call s:h("rustModPath ", {"fg": s:lightest_gray}) | ||
314 | hi link rustMacro secondAccent | ||
315 | hi link rustKeyword Noise | ||
316 | hi link rustDerive secondAccent | ||
317 | hi link rustDeriveTrait secondAccent | ||
318 | hi link rustAttribute secondAccent | ||
319 | hi link rustLifetime secondAccent | ||
320 | |||
321 | hi link schemeSyntax Normal | ||
322 | hi link schemeParentheses Noise | ||
323 | hi link schemeIdentifier Noise | ||
324 | |||
325 | hi link lispParen Noise | ||
326 | hi link lispSymbol Noise | ||
327 | |||
328 | hi link shCommandSub secondAccent | ||
329 | |||
330 | hi link cFormat secondAccent | ||
331 | |||
332 | hi link nixBuiltin secondAccent | ||
333 | hi link nixNamespacedBuiltin secondAccent | ||
334 | |||
335 | hi link sqlSpecial firstAccent | ||
336 | hi link sqlKeyword secondAccent | ||
337 | |||
338 | hi link helpExample Noise | ||
339 | hi link helpCommand secondAccent | ||
340 | hi link helpBacktick secondAccent | ||
341 | hi link helpSpecial Noise | ||
342 | |||
343 | hi link StorageClass Statement | ||
344 | |||
345 | hi link elmType Type | ||
346 | |||
347 | hi link xmlTag Constant | ||
348 | hi link xmlTagName xmlTag | ||
349 | hi link xmlEndTag xmlTag | ||
350 | hi link xmlAttrib xmlTag | ||
351 | |||
352 | hi link markdownH1 Statement | ||
353 | hi link markdownH2 Statement | ||
354 | hi link markdownH3 Statement | ||
355 | hi link markdownH4 Statement | ||
356 | hi link markdownH5 Statement | ||
357 | hi link markdownH6 Statement | ||
358 | hi link markdownListMarker Constant | ||
359 | hi link markdownCode Constant | ||
360 | hi link markdownCodeBlock Constant | ||
361 | hi link markdownCodeDelimiter Constant | ||
362 | hi link markdownHeadingDelimiter Constant | ||
363 | |||
364 | call s:h("cssBraces", {"bg": s:bg, "fg": s:selection}) | ||
365 | hi link cssTextProp Noise | ||
366 | hi link cssTagName Normal | ||
367 | |||
368 | " floatwin | ||
369 | hi link NormalFloat FloatWin | ||