Mercurial > ec-dotfiles
comparison vendor/vim-packs/srcery-vim/colors/srcery.vim @ 726:78469331407e default tip
Update syntaxes
author | nanaya <me@nanaya.net> |
---|---|
date | Mon, 19 Aug 2024 17:04:13 +0900 |
parents | 1e0f578f6752 |
children |
comparison
equal
deleted
inserted
replaced
725:0a896ffe3029 | 726:78469331407e |
---|---|
169 " Vanilla colorscheme --------------------------------------------------------- | 169 " Vanilla colorscheme --------------------------------------------------------- |
170 " General UI: {{{ | 170 " General UI: {{{ |
171 | 171 |
172 " Normal text | 172 " Normal text |
173 " | 173 " |
174 if g:srcery_bg_passthrough == 1 && !has('gui_running') | 174 call s:HL('Normal', s:bright_white, g:srcery_bg) |
175 call s:HL('Normal', s:bright_white, s:none) | 175 |
176 else | 176 call s:HL('FloatBorder', s:white, g:srcery_bg) |
177 call s:HL('Normal', s:bright_white, s:black) | 177 call s:HL('NormalFloat', s:none, s:xgray2) |
178 endif | |
179 | 178 |
180 if v:version >= 700 | 179 if v:version >= 700 |
181 " Screen line that the cursor is | 180 " Screen line that the cursor is |
182 call s:HL('CursorLine', s:none, s:xgray2) | 181 call s:HL('CursorLine', s:none, s:xgray2) |
183 " Screen column that the cursor is | 182 " Screen column that the cursor is |
204 | 203 |
205 " Concealed element: \lambda → λ | 204 " Concealed element: \lambda → λ |
206 call s:HL('Conceal', s:blue, s:none) | 205 call s:HL('Conceal', s:blue, s:none) |
207 | 206 |
208 " Line number of CursorLine | 207 " Line number of CursorLine |
209 if g:srcery_bg_passthrough == 1 && !has('gui_running') | 208 call s:HL('CursorLineNr', s:yellow, g:srcery_bg) |
210 call s:HL('CursorLineNr', s:yellow, s:none) | |
211 else | |
212 call s:HL('CursorLineNr', s:yellow, s:black) | |
213 endif | |
214 | 209 |
215 endif | 210 endif |
216 | 211 |
217 hi! link NonText SrceryXgray4 | 212 hi! link NonText SrceryXgray4 |
218 hi! link SpecialKey SrceryBlue | 213 hi! link SpecialKey SrceryBlue |
225 | 220 |
226 hi! link VisualNOS Visual | 221 hi! link VisualNOS Visual |
227 | 222 |
228 if g:srcery_inverse == 1 && g:srcery_inverse_matches == 1 | 223 if g:srcery_inverse == 1 && g:srcery_inverse_matches == 1 |
229 call s:HL('Search', s:none, s:none, s:inverse) | 224 call s:HL('Search', s:none, s:none, s:inverse) |
230 call s:HL('IncSearch', s:none, s:none, s:inverse) | 225 call s:HL('IncSearch', s:none, s:none, s:underline . s:inverse . s:bold) |
226 call s:HL('CurSearch', s:none, s:none, s:underline . s:inverse . s:bold) | |
231 else | 227 else |
232 call s:HL('Search', s:none, s:xgray5, s:bold) | 228 call s:HL('Search', s:none, s:xgray5) |
233 call s:HL('IncSearch', s:none, s:xgray5, s:underline . s:bold) | 229 call s:HL('IncSearch', s:none, s:xgray5, s:underline . s:bold) |
230 call s:HL('CurSearch', s:none, s:xgray5, s:underline . s:bold) | |
234 endif | 231 endif |
235 | 232 |
236 call s:HL('Underlined', s:blue, s:none, s:underline) | 233 call s:HL('Underlined', s:blue, s:none, s:underline) |
237 | 234 |
238 call s:HL('StatusLine', s:bright_white, s:xgray2) | 235 call s:HL('StatusLine', s:bright_white, s:xgray2) |
239 | 236 |
240 if g:srcery_bg_passthrough == 1 && !has('gui_running') | 237 call s:HL('StatusLineNC', s:bright_black, g:srcery_bg, s:underline) |
241 call s:HL('StatusLineNC', s:bright_black, s:none, s:underline) | 238 " The column separating vertically split windows |
242 | 239 call s:HL('VertSplit', s:bright_white, g:srcery_bg) |
243 " The column separating vertically split windows | 240 " Current match in wildmenu completion |
244 call s:HL('VertSplit', s:bright_white, s:none) | 241 call s:HL('WildMenu', s:blue, g:srcery_bg, s:bold) |
245 | |
246 " Current match in wildmenu completion | |
247 call s:HL('WildMenu', s:blue, s:none, s:bold) | |
248 else | |
249 call s:HL('StatusLineNC', s:bright_black, s:black, s:underline) | |
250 call s:HL('VertSplit', s:bright_white, s:black) | |
251 call s:HL('WildMenu', s:blue, s:black, s:bold) | |
252 endif | |
253 | 242 |
254 " Directory names, special names in listing | 243 " Directory names, special names in listing |
255 hi! link Directory SrceryGreenBold | 244 hi! link Directory SrceryGreenBold |
256 | 245 |
257 " Titles for output from :set all, :autocmd, etc. | 246 " Titles for output from :set all, :autocmd, etc. |
272 " Gutter: {{{ | 261 " Gutter: {{{ |
273 | 262 |
274 " Line number for :number and :# commands | 263 " Line number for :number and :# commands |
275 call s:HL('LineNr', s:bright_black) | 264 call s:HL('LineNr', s:bright_black) |
276 | 265 |
277 if g:srcery_bg_passthrough == 1 && !has('gui_running') | 266 " Column where signs are displayed |
278 " Column where signs are displayed | 267 " TODO Possibly need to fix SignColumn |
279 " TODO Possibly need to fix SignColumn | 268 call s:HL('SignColumn', s:none, g:srcery_bg) |
280 call s:HL('SignColumn', s:none, s:none) | 269 " Line used for closed folds |
281 " Line used for closed folds | 270 call s:HL('Folded', s:bright_black, g:srcery_bg, s:italic) |
282 call s:HL('Folded', s:bright_black, s:none, s:italic) | 271 " Column where folds are displayed |
283 " Column where folds are displayed | 272 call s:HL('FoldColumn', s:bright_black, g:srcery_bg) |
284 call s:HL('FoldColumn', s:bright_black, s:none) | |
285 else | |
286 call s:HL('SignColumn', s:none, s:black) | |
287 call s:HL('Folded', s:bright_black, s:black, s:italic) | |
288 call s:HL('FoldColumn', s:bright_black, s:black) | |
289 endif | |
290 | 273 |
291 " }}} | 274 " }}} |
292 " Cursor: {{{ | 275 " Cursor: {{{ |
293 | 276 |
294 " Character under cursor | 277 " Character under cursor |
305 | 288 |
306 hi! link Special SrceryOrange | 289 hi! link Special SrceryOrange |
307 | 290 |
308 call s:HL('Comment', s:bright_black, s:none, s:italic) | 291 call s:HL('Comment', s:bright_black, s:none, s:italic) |
309 | 292 |
310 if g:srcery_bg_passthrough == 1 && !has('gui_running') | 293 call s:HL('Todo', s:bright_white, g:srcery_bg, s:bold . s:italic) |
311 call s:HL('Todo', s:bright_white, s:none, s:bold . s:italic) | |
312 else | |
313 call s:HL('Todo', s:bright_white, s:black, s:bold . s:italic) | |
314 endif | |
315 | 294 |
316 call s:HL('Error', s:bright_white, s:red, s:bold) | 295 call s:HL('Error', s:bright_white, s:red, s:bold) |
317 | 296 |
318 " String constant: "this is a string" | 297 " String constant: "this is a string" |
319 call s:HL('String', s:bright_green) | 298 call s:HL('String', s:bright_green) |
327 " case, default, etc. | 306 " case, default, etc. |
328 hi! link Label SrceryRed | 307 hi! link Label SrceryRed |
329 " try, catch, throw | 308 " try, catch, throw |
330 hi! link Exception SrceryRed | 309 hi! link Exception SrceryRed |
331 " sizeof, "+", "*", etc. | 310 " sizeof, "+", "*", etc. |
332 hi! link Operator Normal | 311 hi! link Operator SrceryBrightWhite |
333 " Any other keyword | 312 " Any other keyword |
334 hi! link Keyword SrceryRed | 313 hi! link Keyword SrceryRed |
335 | 314 |
336 " Variable name | 315 " Variable name |
337 hi! link Identifier SrceryCyan | 316 hi! link Identifier SrceryCyan |
386 " Popup menu: normal item | 365 " Popup menu: normal item |
387 call s:HL('Pmenu', s:bright_white, s:xgray2) | 366 call s:HL('Pmenu', s:bright_white, s:xgray2) |
388 " Popup menu: selected item | 367 " Popup menu: selected item |
389 call s:HL('PmenuSel', s:bright_white, s:blue, s:bold) | 368 call s:HL('PmenuSel', s:bright_white, s:blue, s:bold) |
390 | 369 |
391 if g:srcery_bg_passthrough == 1 && !has('gui_running') | 370 " Popup menu: scrollbar |
392 " Popup menu: scrollbar | 371 call s:HL('PmenuSbar', s:none, g:srcery_bg) |
393 call s:HL('PmenuSbar', s:none, s:none) | 372 " Popup menu: scrollbar thumb |
394 " Popup menu: scrollbar thumb | 373 call s:HL('PmenuThumb', s:none, s:orange) |
395 call s:HL('PmenuThumb', s:none, s:none) | |
396 else | |
397 call s:HL('PmenuSbar', s:none, s:black) | |
398 call s:HL('PmenuThumb', s:none, s:black) | |
399 endif | |
400 endif | 374 endif |
401 | 375 |
402 " }}} | 376 " }}} |
403 " Diffs: {{{ | 377 " Diffs: {{{ |
404 | 378 |
405 if g:srcery_bg_passthrough == 1 && !has('gui_running') | 379 call s:HL('DiffDelete', s:red, g:srcery_bg) |
406 call s:HL('DiffDelete', s:red, s:none) | 380 call s:HL('DiffAdd', s:green, g:srcery_bg) |
407 call s:HL('DiffAdd', s:green, s:none) | 381 call s:HL('DiffChange', s:cyan, g:srcery_bg) |
408 call s:HL('DiffChange', s:cyan, s:none) | 382 call s:HL('DiffText', s:yellow, g:srcery_bg) |
409 call s:HL('DiffText', s:yellow, s:none) | |
410 else | |
411 call s:HL('DiffDelete', s:red, s:black) | |
412 call s:HL('DiffAdd', s:green, s:black) | |
413 call s:HL('DiffChange', s:cyan, s:black) | |
414 call s:HL('DiffText', s:yellow, s:black) | |
415 endif | |
416 | 383 |
417 " }}} | 384 " }}} |
418 " Spelling: {{{ | 385 " Spelling: {{{ |
419 | 386 |
420 if has('spell') | 387 if has('spell') |
434 if g:srcery_hard_black_terminal_bg == 1 && has('terminal') | 401 if g:srcery_hard_black_terminal_bg == 1 && has('terminal') |
435 " Must set an explicit background as NONE won't work | 402 " Must set an explicit background as NONE won't work |
436 " Therefore not useful with transparent background option | 403 " Therefore not useful with transparent background option |
437 call s:HL('Terminal', s:bright_white, s:hard_black) | 404 call s:HL('Terminal', s:bright_white, s:hard_black) |
438 endif | 405 endif |
406 " }}} | |
407 " Neovim LSP: {{{ | |
408 | |
409 if has('nvim') | |
410 " for backward compatibility with neovim v0.5.x | |
411 hi! link LspDiagnosticsDefaultError DiagnosticError | |
412 hi! link LspDiagnosticsDefaultWarning DiagnosticWarn | |
413 hi! link LspDiagnosticsDefaultInformation DiagnosticInfo | |
414 hi! link LspDiagnosticsDefaultHint DiagnosticHint | |
415 hi! link LspDiagnosticsUnderlineError DiagnosticUnderlineError | |
416 hi! link LspDiagnosticsUnderlineHint DiagnosticUnderlineHint | |
417 hi! link LspDiagnosticsUnderlineInformation DiagnosticUnderlineInfo | |
418 hi! link LspDiagnosticsUnderlineWarning DiagnosticUnderlineWarn | |
419 | |
420 " latest hl groups | |
421 hi! link DiagnosticError SrceryBrightRed | |
422 hi! link DiagnosticWarn SrceryBrightYellow | |
423 hi! link DiagnosticInfo SrceryBrightGreen | |
424 hi! link DiagnosticHint SrceryBrightCyan | |
425 call s:HL('DiagnosticUnderlineError', s:bright_red, s:none, s:undercurl) | |
426 call s:HL('DiagnosticUnderlineWarn', s:bright_yellow, s:none, s:undercurl) | |
427 call s:HL('DiagnosticUnderlineInfo', s:bright_green, s:none, s:undercurl) | |
428 call s:HL('DiagnosticUnderlineHint', s:bright_cyan, s:none, s:undercurl) | |
429 endif | |
439 | 430 |
440 " }}} | 431 " }}} |
441 | 432 |
442 " Filetype specific ----------------------------------------------------------- | 433 " Filetype specific ----------------------------------------------------------- |
443 " Diff: {{{ | 434 " Diff: {{{ |