Mercurial > ec-dotfiles
annotate vendor/vim-packs/srcery-vim/autoload/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 " Setup Variables: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
2 " Colors {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
3 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
4 if !exists('g:srcery_black') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
5 let g:srcery_black='#1C1B19' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
6 endif |
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 if !exists('g:srcery_red') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
9 let g:srcery_red='#EF2F27' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
10 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
11 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
12 if !exists('g:srcery_green') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
13 let g:srcery_green='#519F50' |
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 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
16 if !exists('g:srcery_yellow') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
17 let g:srcery_yellow='#FBB829' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
18 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
19 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
20 if !exists('g:srcery_blue') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
21 let g:srcery_blue='#2C78BF' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
22 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
23 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
24 if !exists('g:srcery_magenta') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
25 let g:srcery_magenta='#E02C6D' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
26 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
27 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
28 if !exists('g:srcery_cyan') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
29 let g:srcery_cyan='#0AAEB3' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
30 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
31 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
32 if !exists('g:srcery_white') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
33 let g:srcery_white='#BAA67F' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
34 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
35 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
36 if !exists('g:srcery_bright_black') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
37 let g:srcery_bright_black='#918175' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
38 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
39 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
40 if !exists('g:srcery_bright_red') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
41 let g:srcery_bright_red='#F75341' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
42 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
43 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
44 if !exists('g:srcery_bright_green') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
45 let g:srcery_bright_green='#98BC37' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
46 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
47 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
48 if !exists('g:srcery_bright_yellow') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
49 let g:srcery_bright_yellow='#FED06E' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
50 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
51 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
52 if !exists('g:srcery_bright_blue') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
53 let g:srcery_bright_blue='#68A8E4' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
54 endif |
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 if !exists('g:srcery_bright_magenta') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
57 let g:srcery_bright_magenta='#FF5C8F' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
58 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
59 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
60 if !exists('g:srcery_bright_cyan') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
61 let g:srcery_bright_cyan='#2BE4D0' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
62 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
63 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
64 if !exists('g:srcery_bright_white') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
65 let g:srcery_bright_white='#FCE8C3' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
66 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
67 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
68 if !exists('g:srcery_orange') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
69 let g:srcery_orange='#FF5F00' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
70 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
71 |
726 | 72 if !exists('g:srcery_orange_cterm') |
73 let g:srcery_orange_cterm=202 | |
74 endif | |
75 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
76 if !exists('g:srcery_bright_orange') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
77 let g:srcery_bright_orange='#FF8700' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
78 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
79 |
726 | 80 if !exists('g:srcery_bright_orange_cterm') |
81 let g:srcery_bright_orange_cterm=208 | |
82 endif | |
83 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
84 if !exists('g:srcery_hard_black') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
85 let g:srcery_hard_black='#121212' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
86 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
87 |
726 | 88 if !exists('g:srcery_hard_black_cterm') |
89 let g:srcery_hard_black_cterm=233 | |
90 endif | |
91 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
92 if !exists('g:srcery_xgray1') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
93 let g:srcery_xgray1='#262626' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
94 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
95 |
726 | 96 if !exists('g:srcery_xgray1_cterm') |
97 let g:srcery_xgray1_cterm=235 | |
98 endif | |
99 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
100 if !exists('g:srcery_xgray2') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
101 let g:srcery_xgray2='#303030' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
102 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
103 |
726 | 104 if !exists('g:srcery_xgray2_cterm') |
105 let g:srcery_xgray2_cterm=236 | |
106 endif | |
107 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
108 if !exists('g:srcery_xgray3') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
109 let g:srcery_xgray3='#3A3A3A' |
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 |
726 | 112 if !exists('g:srcery_xgray3_cterm') |
113 let g:srcery_xgray3_cterm=237 | |
114 endif | |
115 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
116 if !exists('g:srcery_xgray4') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
117 let g:srcery_xgray4='#444444' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
118 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
119 |
726 | 120 if !exists('g:srcery_xgray4_cterm') |
121 let g:srcery_xgray4_cterm=238 | |
122 endif | |
123 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
124 if !exists('g:srcery_xgray5') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
125 let g:srcery_xgray5='#4E4E4E' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
126 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
127 |
726 | 128 if !exists('g:srcery_xgray5_cterm') |
129 let g:srcery_xgray5_cterm=239 | |
130 endif | |
131 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
132 if !exists('g:srcery_xgray6') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
133 let g:srcery_xgray6='#585858' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
134 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
135 |
726 | 136 if !exists('g:srcery_xgray6_cterm') |
137 let g:srcery_xgray6_cterm=240 | |
138 endif | |
139 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
140 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
141 " Options {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
142 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
143 if !exists('g:srcery_bold') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
144 let g:srcery_bold=1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
145 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
146 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
147 if !exists('g:srcery_italic') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
148 if has('gui_running') || $TERM_ITALICS ==? 'true' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
149 let g:srcery_italic=1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
150 else |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
151 let g:srcery_italic=0 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
152 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
153 endif |
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 if !exists('g:srcery_undercurl') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
156 let g:srcery_undercurl=1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
157 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
158 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
159 if !exists('g:srcery_underline') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
160 let g:srcery_underline=1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
161 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
162 |
726 | 163 if !exists('g:srcery_strikethrough') |
164 let g:srcery_strikethrough=1 | |
165 endif | |
166 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
167 if !exists('g:srcery_inverse') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
168 let g:srcery_inverse=1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
169 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
170 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
171 if !exists('g:srcery_inverse_matches') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
172 let g:srcery_inverse_matches=0 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
173 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
174 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
175 if !exists('g:srcery_inverse_match_paren') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
176 let g:srcery_inverse_match_paren=0 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
177 endif |
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 !exists('g:srcery_dim_lisp_paren') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
180 let g:srcery_dim_lisp_paren=0 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
181 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
182 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
183 if !exists('g:srcery_guisp_fallback') || index(['fg', 'bg'], g:srcery_guisp_fallback) == -1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
184 let g:srcery_guisp_fallback='NONE' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
185 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
186 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
187 if !exists('g:srcery_italic_types') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
188 let g:srcery_italic_types=0 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
189 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
190 |
726 | 191 if !exists('g:srcery_bg') |
192 "Sets the default color for both guisp and cterm backgrounds. | |
193 let g:srcery_bg=[g:srcery_black, 0] | |
194 elseif (index(g:srcery_bg, 'DEFAULT') >= 0) || (index(g:srcery_bg, 'NONE') >= 0 && has('gui_running')) | |
195 "Defaults should be set if the user specifies it, or if the background is set as 'NONE' whilst the gui is running. | |
196 for i in [0, 1] | |
197 if g:srcery_bg[i] ==# 'DEFAULT' || (g:srcery_bg[i] ==# 'NONE' && has('gui_running')) | |
198 let g:srcery_bg[i] = (i==1 ? 0 : g:srcery_black) | |
199 endif | |
200 endfor | |
201 endif | |
202 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
203 if !exists('g:srcery_hard_black_terminal_bg') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
204 let g:srcery_hard_black_terminal_bg=1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
205 endif |
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 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
208 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
209 " Palette: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
210 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
211 let g:srcery#palette = {} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
212 let g:srcery#palette.none = ['NONE', 'NONE'] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
213 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
214 " 16 base colors |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
215 let g:srcery#palette.black = [g:srcery_black, 0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
216 let g:srcery#palette.red = [g:srcery_red, 1] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
217 let g:srcery#palette.green = [g:srcery_green, 2] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
218 let g:srcery#palette.yellow = [g:srcery_yellow, 3] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
219 let g:srcery#palette.blue = [g:srcery_blue, 4] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
220 let g:srcery#palette.magenta = [g:srcery_magenta, 5] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
221 let g:srcery#palette.cyan = [g:srcery_cyan, 6] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
222 let g:srcery#palette.white = [g:srcery_white, 7] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
223 let g:srcery#palette.bright_black = [g:srcery_bright_black, 8] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
224 let g:srcery#palette.bright_red = [g:srcery_bright_red, 9] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
225 let g:srcery#palette.bright_green = [g:srcery_bright_green, 10] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
226 let g:srcery#palette.bright_yellow = [g:srcery_bright_yellow, 11] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
227 let g:srcery#palette.bright_blue = [g:srcery_bright_blue, 12] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
228 let g:srcery#palette.bright_magenta = [g:srcery_bright_magenta, 13] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
229 let g:srcery#palette.bright_cyan = [g:srcery_bright_cyan, 14] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
230 let g:srcery#palette.bright_white = [g:srcery_bright_white, 15] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
231 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
232 " xterm colors |
726 | 233 let g:srcery#palette.orange = [g:srcery_orange, |
234 \ g:srcery_orange_cterm] | |
235 let g:srcery#palette.bright_orange = [g:srcery_bright_orange, | |
236 \ g:srcery_bright_orange_cterm] | |
237 let g:srcery#palette.hard_black = [g:srcery_hard_black, | |
238 \ g:srcery_hard_black_cterm] | |
239 let g:srcery#palette.xgray1 = [g:srcery_xgray1, g:srcery_xgray1_cterm] | |
240 let g:srcery#palette.xgray2 = [g:srcery_xgray2, g:srcery_xgray2_cterm] | |
241 let g:srcery#palette.xgray3 = [g:srcery_xgray3, g:srcery_xgray3_cterm] | |
242 let g:srcery#palette.xgray4 = [g:srcery_xgray4, g:srcery_xgray4_cterm] | |
243 let g:srcery#palette.xgray5 = [g:srcery_xgray5, g:srcery_xgray5_cterm] | |
244 let g:srcery#palette.xgray6 = [g:srcery_xgray6, g:srcery_xgray6_cterm] | |
704
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 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
247 " Setup Emphasis: {{{ |
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 let g:srcery#palette.bold = 'bold,' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
250 if g:srcery_bold == 0 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
251 let g:srcery#palette.bold = '' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
252 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
253 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
254 let g:srcery#palette.italic = 'italic,' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
255 if g:srcery_italic == 0 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
256 let g:srcery#palette.italic = '' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
257 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
258 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
259 let g:srcery#palette.underline = 'underline,' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
260 if g:srcery_underline == 0 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
261 let g:srcery#palette.underline = '' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
262 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
263 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
264 let g:srcery#palette.undercurl = 'undercurl,' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
265 if g:srcery_undercurl == 0 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
266 let g:srcery#palette.undercurl = '' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
267 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
268 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
269 let g:srcery#palette.inverse = 'inverse,' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
270 if g:srcery_inverse == 0 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
271 let g:srcery#palette.inverse = '' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
272 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
273 |
726 | 274 let g:srcery#palette.strikethrough = 'strikethrough,' |
275 if g:srcery_strikethrough == 0 | |
276 let g:srcery#palette.strikethrough = '' | |
277 endif | |
278 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
279 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
280 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
281 " Setup Terminal Colors For Neovim: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
282 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
283 if has('nvim') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
284 let g:terminal_color_0 = g:srcery#palette.black[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
285 let g:terminal_color_8 = g:srcery#palette.bright_black[0] |
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 let g:terminal_color_1 = g:srcery#palette.red[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
288 let g:terminal_color_9 = g:srcery#palette.bright_red[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
289 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
290 let g:terminal_color_2 = g:srcery#palette.green[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
291 let g:terminal_color_10 = g:srcery#palette.bright_green[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
292 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
293 let g:terminal_color_3 = g:srcery#palette.yellow[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
294 let g:terminal_color_11 = g:srcery#palette.bright_yellow[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
295 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
296 let g:terminal_color_4 = g:srcery#palette.blue[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
297 let g:terminal_color_12 = g:srcery#palette.bright_blue[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
298 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
299 let g:terminal_color_5 = g:srcery#palette.magenta[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
300 let g:terminal_color_13 = g:srcery#palette.bright_magenta[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
301 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
302 let g:terminal_color_6 = g:srcery#palette.cyan[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
303 let g:terminal_color_14 = g:srcery#palette.bright_cyan[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
304 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
305 let g:terminal_color_7 = g:srcery#palette.white[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
306 let g:terminal_color_15 = g:srcery#palette.bright_white[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
307 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
308 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
309 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
310 " Setup Terminal Colors For Vim with termguicolors: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
311 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
312 if exists('*term_setansicolors') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
313 let g:terminal_ansi_colors = repeat([0], 16) |
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 let g:terminal_ansi_colors[0] = g:srcery#palette.black[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
316 let g:terminal_ansi_colors[8] = g:srcery#palette.bright_black[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
317 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
318 let g:terminal_ansi_colors[1] = g:srcery#palette.red[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
319 let g:terminal_ansi_colors[9] = g:srcery#palette.bright_red[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
320 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
321 let g:terminal_ansi_colors[2] = g:srcery#palette.green[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
322 let g:terminal_ansi_colors[10] = g:srcery#palette.bright_green[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
323 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
324 let g:terminal_ansi_colors[3] = g:srcery#palette.yellow[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
325 let g:terminal_ansi_colors[11] = g:srcery#palette.bright_yellow[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
326 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
327 let g:terminal_ansi_colors[4] = g:srcery#palette.blue[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
328 let g:terminal_ansi_colors[12] = g:srcery#palette.bright_blue[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
329 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
330 let g:terminal_ansi_colors[5] = g:srcery#palette.magenta[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
331 let g:terminal_ansi_colors[13] = g:srcery#palette.bright_magenta[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
332 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
333 let g:terminal_ansi_colors[6] = g:srcery#palette.cyan[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
334 let g:terminal_ansi_colors[14] = g:srcery#palette.bright_cyan[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
335 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
336 let g:terminal_ansi_colors[7] = g:srcery#palette.white[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
337 let g:terminal_ansi_colors[15] = g:srcery#palette.bright_white[0] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
338 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
339 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
340 " }}} |
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 " vim: fdm=marker ts=2 sts=2 sw=2 fdl=0: |