Mercurial > ec-dotfiles
annotate vendor/vim-packs/srcery-vim/colors/srcery.vim @ 727:49538e2aad65 default tip
Add a useful editrc
author | nanaya <me@nanaya.net> |
---|---|
date | Tue, 24 Sep 2024 16:58:15 +0900 |
parents | 78469331407e |
children |
rev | line source |
---|---|
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
1 " 'srcery.vim' -- Vim color scheme. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
2 " Maintainer: Roosta (mail@roosta.sh) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
3 " Description: Colorscheme that focus ease of use and clearly defined contrasting colors with a slightly earthy tone. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
4 " Original Source: https://github.com/morhetz/gruvbox |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
5 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
6 scriptencoding utf-8 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
7 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
8 set background=dark |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
9 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
10 if v:version > 580 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
11 hi clear |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
12 if exists('syntax_on') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
13 syntax reset |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
14 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
15 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
16 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
17 let g:colors_name='srcery' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
18 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
19 if !has('gui_running') && &t_Co != 256 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
20 finish |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
21 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
22 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
23 " Palette {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
24 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
25 let s:none = g:srcery#palette.none |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
26 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
27 " 16 base colors |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
28 let s:black = g:srcery#palette.black |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
29 let s:red = g:srcery#palette.red |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
30 let s:green = g:srcery#palette.green |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
31 let s:yellow = g:srcery#palette.yellow |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
32 let s:blue = g:srcery#palette.blue |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
33 let s:magenta = g:srcery#palette.magenta |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
34 let s:cyan = g:srcery#palette.cyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
35 let s:white = g:srcery#palette.white |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
36 let s:bright_black = g:srcery#palette.bright_black |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
37 let s:bright_red = g:srcery#palette.bright_red |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
38 let s:bright_green = g:srcery#palette.bright_green |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
39 let s:bright_yellow = g:srcery#palette.bright_yellow |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
40 let s:bright_blue = g:srcery#palette.bright_blue |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
41 let s:bright_magenta = g:srcery#palette.bright_magenta |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
42 let s:bright_cyan = g:srcery#palette.bright_cyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
43 let s:bright_white = g:srcery#palette.bright_white |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
44 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
45 " xterm colors |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
46 let s:orange = g:srcery#palette.orange |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
47 let s:bright_orange = g:srcery#palette.bright_orange |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
48 let s:hard_black = g:srcery#palette.hard_black |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
49 let s:xgray1 = g:srcery#palette.xgray1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
50 let s:xgray2 = g:srcery#palette.xgray2 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
51 let s:xgray3 = g:srcery#palette.xgray3 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
52 let s:xgray4 = g:srcery#palette.xgray4 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
53 let s:xgray5 = g:srcery#palette.xgray5 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
54 let s:xgray6 = g:srcery#palette.xgray6 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
55 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
56 "}}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
57 " Setup Emphasis: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
58 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
59 let s:bold = g:srcery#palette.bold |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
60 let s:italic = g:srcery#palette.italic |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
61 let s:underline = g:srcery#palette.underline |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
62 let s:undercurl = g:srcery#palette.undercurl |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
63 let s:inverse = g:srcery#palette.inverse |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
64 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
65 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
66 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
67 " Highlighting Function: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
68 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
69 function! s:HL(group, fg, ...) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
70 " Arguments: group, guifg, guibg, gui, guisp |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
71 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
72 " foreground |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
73 let l:fg = a:fg |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
74 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
75 " background |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
76 if a:0 >= 1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
77 let l:bg = a:1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
78 else |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
79 let l:bg = s:none |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
80 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
81 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
82 " emphasis |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
83 if a:0 >= 2 && strlen(a:2) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
84 let l:emstr = a:2 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
85 else |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
86 let l:emstr = 'NONE,' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
87 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
88 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
89 " special fallback |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
90 if a:0 >= 3 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
91 if g:srcery_guisp_fallback !=# 'NONE' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
92 let fg = a:3 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
93 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
94 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
95 " bg fallback mode should invert higlighting |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
96 if g:srcery_guisp_fallback ==# 'bg' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
97 let emstr .= 'inverse,' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
98 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
99 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
100 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
101 let l:histring = [ 'hi', a:group, |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
102 \ 'guifg=' . l:fg[0], 'ctermfg=' . l:fg[1], |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
103 \ 'guibg=' . l:bg[0], 'ctermbg=' . l:bg[1], |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
104 \ 'gui=' . l:emstr[:-2], 'cterm=' . l:emstr[:-2] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
105 \ ] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
106 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
107 " special |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
108 if a:0 >= 3 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
109 call add(l:histring, 'guisp=' . a:3[0]) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
110 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
111 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
112 execute join(l:histring, ' ') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
113 endfunction |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
114 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
115 "}}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
116 " Srcery Hi Groups: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
117 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
118 " memoize common hi groups |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
119 call s:HL('SrceryRed', s:red) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
120 call s:HL('SrceryGreen', s:green) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
121 call s:HL('SrceryYellow', s:yellow) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
122 call s:HL('SrceryBlue', s:blue) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
123 call s:HL('SrceryMagenta', s:magenta) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
124 call s:HL('SrceryCyan', s:cyan) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
125 call s:HL('SrceryBlack', s:black) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
126 call s:HL('SrceryWhite', s:white) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
127 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
128 call s:HL('SrceryRedBold', s:red, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
129 call s:HL('SrceryGreenBold', s:green, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
130 call s:HL('SrceryYellowBold', s:yellow, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
131 call s:HL('SrceryBlueBold', s:blue, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
132 call s:HL('SrceryMagentaBold', s:magenta, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
133 call s:HL('SrceryCyanBold', s:cyan, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
134 call s:HL('SrceryBlackBold', s:black, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
135 call s:HL('SrceryWhiteBold', s:white, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
136 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
137 call s:HL('SrceryBrightRed', s:bright_red, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
138 call s:HL('SrceryBrightGreen', s:bright_green, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
139 call s:HL('SrceryBrightYellow', s:bright_yellow, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
140 call s:HL('SrceryBrightBlue', s:bright_blue, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
141 call s:HL('SrceryBrightMagenta', s:bright_magenta, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
142 call s:HL('SrceryBrightCyan', s:bright_cyan, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
143 call s:HL('SrceryBrightBlack', s:bright_black, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
144 call s:HL('SrceryBrightWhite', s:bright_white) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
145 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
146 call s:HL('SrceryBrightRedBold', s:bright_red, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
147 call s:HL('SrceryBrightGreenBold', s:bright_green, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
148 call s:HL('SrceryBrightYellowBold', s:bright_yellow, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
149 call s:HL('SrceryBrightBlueBold', s:bright_blue, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
150 call s:HL('SrceryBrightMagentaBold', s:bright_magenta, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
151 call s:HL('SrceryBrightCyanBold', s:bright_cyan, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
152 call s:HL('SrceryBrightBlackBold', s:bright_black, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
153 call s:HL('SrceryBrightWhiteBold', s:bright_white, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
154 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
155 " special |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
156 call s:HL('SrceryOrange', s:orange) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
157 call s:HL('SrceryBrightOrange', s:bright_orange) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
158 call s:HL('SrceryOrangeBold', s:orange, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
159 call s:HL('SrceryHardBlack', s:hard_black) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
160 call s:HL('SrceryXgray1', s:xgray1) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
161 call s:HL('SrceryXgray2', s:xgray2) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
162 call s:HL('SrceryXgray3', s:xgray3) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
163 call s:HL('SrceryXgray4', s:xgray4) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
164 call s:HL('SrceryXgray5', s:xgray5) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
165 call s:HL('SrceryXgray6', s:xgray6) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
166 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
167 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
168 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
169 " Vanilla colorscheme --------------------------------------------------------- |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
170 " General UI: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
171 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
172 " Normal text |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
173 " |
726 | 174 call s:HL('Normal', s:bright_white, g:srcery_bg) |
175 | |
176 call s:HL('FloatBorder', s:white, g:srcery_bg) | |
177 call s:HL('NormalFloat', s:none, s:xgray2) | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
178 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
179 if v:version >= 700 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
180 " Screen line that the cursor is |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
181 call s:HL('CursorLine', s:none, s:xgray2) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
182 " Screen column that the cursor is |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
183 hi! link CursorColumn CursorLine |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
184 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
185 call s:HL('TabLineFill', s:bright_black, s:xgray2) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
186 call s:HL('TabLineSel', s:bright_white, s:xgray5) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
187 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
188 " Not active tab page label |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
189 hi! link TabLine TabLineFill |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
190 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
191 " Match paired bracket under the cursor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
192 " |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
193 if g:srcery_inverse_match_paren == 1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
194 call s:HL('MatchParen', s:bright_magenta, s:none, s:inverse . s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
195 else |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
196 call s:HL('MatchParen', s:bright_magenta, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
197 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
198 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
199 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
200 if v:version >= 703 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
201 " Highlighted screen columns |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
202 call s:HL('ColorColumn', s:none, s:xgray2) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
203 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
204 " Concealed element: \lambda → λ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
205 call s:HL('Conceal', s:blue, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
206 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
207 " Line number of CursorLine |
726 | 208 call s:HL('CursorLineNr', s:yellow, g:srcery_bg) |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
209 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
210 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
211 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
212 hi! link NonText SrceryXgray4 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
213 hi! link SpecialKey SrceryBlue |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
214 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
215 if g:srcery_inverse == 1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
216 call s:HL('Visual', s:none, s:none, s:inverse) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
217 else |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
218 call s:HL('Visual', s:none, s:xgray2, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
219 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
220 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
221 hi! link VisualNOS Visual |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
222 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
223 if g:srcery_inverse == 1 && g:srcery_inverse_matches == 1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
224 call s:HL('Search', s:none, s:none, s:inverse) |
726 | 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) | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
227 else |
726 | 228 call s:HL('Search', s:none, s:xgray5) |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
229 call s:HL('IncSearch', s:none, s:xgray5, s:underline . s:bold) |
726 | 230 call s:HL('CurSearch', s:none, s:xgray5, s:underline . s:bold) |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
231 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
232 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
233 call s:HL('Underlined', s:blue, s:none, s:underline) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
234 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
235 call s:HL('StatusLine', s:bright_white, s:xgray2) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
236 |
726 | 237 call s:HL('StatusLineNC', s:bright_black, g:srcery_bg, s:underline) |
238 " The column separating vertically split windows | |
239 call s:HL('VertSplit', s:bright_white, g:srcery_bg) | |
240 " Current match in wildmenu completion | |
241 call s:HL('WildMenu', s:blue, g:srcery_bg, s:bold) | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
242 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
243 " Directory names, special names in listing |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
244 hi! link Directory SrceryGreenBold |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
245 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
246 " Titles for output from :set all, :autocmd, etc. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
247 hi! link Title SrceryGreenBold |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
248 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
249 " Error messages on the command line |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
250 call s:HL('ErrorMsg', s:bright_white, s:red) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
251 " More prompt: -- More -- |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
252 hi! link MoreMsg SrceryYellowBold |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
253 " Current mode message: -- INSERT -- |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
254 hi! link ModeMsg SrceryYellowBold |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
255 " 'Press enter' prompt and yes/no questions |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
256 hi! link Question SrceryOrangeBold |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
257 " Warning messages |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
258 hi! link WarningMsg SrceryRedBold |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
259 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
260 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
261 " Gutter: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
262 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
263 " Line number for :number and :# commands |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
264 call s:HL('LineNr', s:bright_black) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
265 |
726 | 266 " Column where signs are displayed |
267 " TODO Possibly need to fix SignColumn | |
268 call s:HL('SignColumn', s:none, g:srcery_bg) | |
269 " Line used for closed folds | |
270 call s:HL('Folded', s:bright_black, g:srcery_bg, s:italic) | |
271 " Column where folds are displayed | |
272 call s:HL('FoldColumn', s:bright_black, g:srcery_bg) | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
273 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
274 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
275 " Cursor: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
276 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
277 " Character under cursor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
278 call s:HL('Cursor', s:black, s:yellow) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
279 " Visual mode cursor, selection |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
280 hi! link vCursor Cursor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
281 " Input moder cursor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
282 hi! link iCursor Cursor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
283 " Language mapping cursor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
284 hi! link lCursor Cursor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
285 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
286 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
287 " Syntax Highlighting: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
288 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
289 hi! link Special SrceryOrange |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
290 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
291 call s:HL('Comment', s:bright_black, s:none, s:italic) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
292 |
726 | 293 call s:HL('Todo', s:bright_white, g:srcery_bg, s:bold . s:italic) |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
294 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
295 call s:HL('Error', s:bright_white, s:red, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
296 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
297 " String constant: "this is a string" |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
298 call s:HL('String', s:bright_green) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
299 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
300 " Generic statement |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
301 hi! link Statement SrceryRed |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
302 " if, then, else, endif, swicth, etc. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
303 hi! link Conditional SrceryRed |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
304 " for, do, while, etc. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
305 hi! link Repeat SrceryRed |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
306 " case, default, etc. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
307 hi! link Label SrceryRed |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
308 " try, catch, throw |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
309 hi! link Exception SrceryRed |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
310 " sizeof, "+", "*", etc. |
726 | 311 hi! link Operator SrceryBrightWhite |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
312 " Any other keyword |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
313 hi! link Keyword SrceryRed |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
314 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
315 " Variable name |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
316 hi! link Identifier SrceryCyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
317 " Function name |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
318 hi! link Function SrceryYellow |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
319 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
320 " Generic preprocessor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
321 hi! link PreProc SrceryCyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
322 " Preprocessor #include |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
323 hi! link Include SrceryCyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
324 " Preprocessor #define |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
325 hi! link Define SrceryCyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
326 " Same as Define |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
327 hi! link Macro SrceryOrange |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
328 " Preprocessor #if, #else, #endif, etc. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
329 hi! link PreCondit SrceryCyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
330 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
331 " Generic constant |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
332 hi! link Constant SrceryBrightMagenta |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
333 " Character constant: 'c', '/n' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
334 hi! link Character SrceryBrightMagenta |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
335 " Boolean constant: TRUE, false |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
336 hi! link Boolean SrceryBrightMagenta |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
337 " Number constant: 234, 0xff |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
338 hi! link Number SrceryBrightMagenta |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
339 " Floating point constant: 2.3e10 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
340 hi! link Float SrceryBrightMagenta |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
341 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
342 " Generic type |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
343 if g:srcery_italic_types == 1 && g:srcery_italic == 1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
344 call s:HL('Type', s:bright_blue, s:none, s:italic) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
345 else |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
346 hi! link Type SrceryBrightBlue |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
347 end |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
348 " static, register, volatile, etc |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
349 hi! link StorageClass SrceryOrange |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
350 " struct, union, enum, etc. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
351 hi! link Structure SrceryCyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
352 " typedef |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
353 hi! link Typedef SrceryMagenta |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
354 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
355 if g:srcery_dim_lisp_paren == 1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
356 hi! link Delimiter SrceryXgray6 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
357 else |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
358 hi! link Delimiter SrceryBrightBlack |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
359 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
360 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
361 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
362 " Completion Menu: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
363 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
364 if v:version >= 700 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
365 " Popup menu: normal item |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
366 call s:HL('Pmenu', s:bright_white, s:xgray2) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
367 " Popup menu: selected item |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
368 call s:HL('PmenuSel', s:bright_white, s:blue, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
369 |
726 | 370 " Popup menu: scrollbar |
371 call s:HL('PmenuSbar', s:none, g:srcery_bg) | |
372 " Popup menu: scrollbar thumb | |
373 call s:HL('PmenuThumb', s:none, s:orange) | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
374 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
375 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
376 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
377 " Diffs: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
378 |
726 | 379 call s:HL('DiffDelete', s:red, g:srcery_bg) |
380 call s:HL('DiffAdd', s:green, g:srcery_bg) | |
381 call s:HL('DiffChange', s:cyan, g:srcery_bg) | |
382 call s:HL('DiffText', s:yellow, g:srcery_bg) | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
383 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
384 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
385 " Spelling: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
386 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
387 if has('spell') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
388 " Not capitalised word, or compile warnings |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
389 call s:HL('SpellCap', s:green, s:none, s:bold . s:italic) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
390 " Not recognized word |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
391 call s:HL('SpellBad', s:none, s:none, s:undercurl, s:blue) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
392 " Wrong spelling for selected region |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
393 call s:HL('SpellLocal', s:none, s:none, s:undercurl, s:cyan) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
394 " Rare word |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
395 call s:HL('SpellRare', s:none, s:none, s:undercurl, s:magenta) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
396 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
397 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
398 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
399 " Terminal: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
400 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
401 if g:srcery_hard_black_terminal_bg == 1 && has('terminal') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
402 " Must set an explicit background as NONE won't work |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
403 " Therefore not useful with transparent background option |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
404 call s:HL('Terminal', s:bright_white, s:hard_black) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
405 endif |
726 | 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 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
430 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
431 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
432 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
433 " Filetype specific ----------------------------------------------------------- |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
434 " Diff: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
435 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
436 hi! link diffAdded SrceryGreen |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
437 hi! link diffRemoved SrceryRed |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
438 hi! link diffChanged SrceryCyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
439 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
440 hi! link diffFile SrceryOrange |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
441 hi! link diffNewFile SrceryYellow |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
442 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
443 hi! link diffLine SrceryBlue |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
444 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
445 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
446 " Misc: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
447 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
448 call s:HL('ExtraWhitespace', s:none, s:red) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
449 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
450 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
451 " vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker : |