comparison vendor/vim-packs/srcery-vim/autoload/srcery.vim @ 726:78469331407e

Update syntaxes
author nanaya <me@nanaya.net>
date Mon, 19 Aug 2024 17:04:13 +0900
parents 1e0f578f6752
children
comparison
equal deleted inserted replaced
725:0a896ffe3029 726:78469331407e
67 67
68 if !exists('g:srcery_orange') 68 if !exists('g:srcery_orange')
69 let g:srcery_orange='#FF5F00' 69 let g:srcery_orange='#FF5F00'
70 endif 70 endif
71 71
72 if !exists('g:srcery_orange_cterm')
73 let g:srcery_orange_cterm=202
74 endif
75
72 if !exists('g:srcery_bright_orange') 76 if !exists('g:srcery_bright_orange')
73 let g:srcery_bright_orange='#FF8700' 77 let g:srcery_bright_orange='#FF8700'
74 endif 78 endif
75 79
80 if !exists('g:srcery_bright_orange_cterm')
81 let g:srcery_bright_orange_cterm=208
82 endif
83
76 if !exists('g:srcery_hard_black') 84 if !exists('g:srcery_hard_black')
77 let g:srcery_hard_black='#121212' 85 let g:srcery_hard_black='#121212'
78 endif 86 endif
79 87
88 if !exists('g:srcery_hard_black_cterm')
89 let g:srcery_hard_black_cterm=233
90 endif
91
80 if !exists('g:srcery_xgray1') 92 if !exists('g:srcery_xgray1')
81 let g:srcery_xgray1='#262626' 93 let g:srcery_xgray1='#262626'
82 endif 94 endif
83 95
96 if !exists('g:srcery_xgray1_cterm')
97 let g:srcery_xgray1_cterm=235
98 endif
99
84 if !exists('g:srcery_xgray2') 100 if !exists('g:srcery_xgray2')
85 let g:srcery_xgray2='#303030' 101 let g:srcery_xgray2='#303030'
86 endif 102 endif
87 103
104 if !exists('g:srcery_xgray2_cterm')
105 let g:srcery_xgray2_cterm=236
106 endif
107
88 if !exists('g:srcery_xgray3') 108 if !exists('g:srcery_xgray3')
89 let g:srcery_xgray3='#3A3A3A' 109 let g:srcery_xgray3='#3A3A3A'
90 endif 110 endif
91 111
112 if !exists('g:srcery_xgray3_cterm')
113 let g:srcery_xgray3_cterm=237
114 endif
115
92 if !exists('g:srcery_xgray4') 116 if !exists('g:srcery_xgray4')
93 let g:srcery_xgray4='#444444' 117 let g:srcery_xgray4='#444444'
94 endif 118 endif
95 119
120 if !exists('g:srcery_xgray4_cterm')
121 let g:srcery_xgray4_cterm=238
122 endif
123
96 if !exists('g:srcery_xgray5') 124 if !exists('g:srcery_xgray5')
97 let g:srcery_xgray5='#4E4E4E' 125 let g:srcery_xgray5='#4E4E4E'
98 endif 126 endif
99 127
128 if !exists('g:srcery_xgray5_cterm')
129 let g:srcery_xgray5_cterm=239
130 endif
131
100 if !exists('g:srcery_xgray6') 132 if !exists('g:srcery_xgray6')
101 let g:srcery_xgray6='#585858' 133 let g:srcery_xgray6='#585858'
134 endif
135
136 if !exists('g:srcery_xgray6_cterm')
137 let g:srcery_xgray6_cterm=240
102 endif 138 endif
103 139
104 " }}} 140 " }}}
105 " Options {{{ 141 " Options {{{
106 142
114 else 150 else
115 let g:srcery_italic=0 151 let g:srcery_italic=0
116 endif 152 endif
117 endif 153 endif
118 154
119 if !exists('g:srcery_bg_passthrough')
120 let g:srcery_bg_passthrough=0
121 endif
122
123 if !exists('g:srcery_undercurl') 155 if !exists('g:srcery_undercurl')
124 let g:srcery_undercurl=1 156 let g:srcery_undercurl=1
125 endif 157 endif
126 158
127 if !exists('g:srcery_underline') 159 if !exists('g:srcery_underline')
128 let g:srcery_underline=1 160 let g:srcery_underline=1
129 endif 161 endif
130 162
163 if !exists('g:srcery_strikethrough')
164 let g:srcery_strikethrough=1
165 endif
166
131 if !exists('g:srcery_inverse') 167 if !exists('g:srcery_inverse')
132 let g:srcery_inverse=1 168 let g:srcery_inverse=1
133 endif 169 endif
134 170
135 if !exists('g:srcery_inverse_matches') 171 if !exists('g:srcery_inverse_matches')
148 let g:srcery_guisp_fallback='NONE' 184 let g:srcery_guisp_fallback='NONE'
149 endif 185 endif
150 186
151 if !exists('g:srcery_italic_types') 187 if !exists('g:srcery_italic_types')
152 let g:srcery_italic_types=0 188 let g:srcery_italic_types=0
189 endif
190
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
153 endif 201 endif
154 202
155 if !exists('g:srcery_hard_black_terminal_bg') 203 if !exists('g:srcery_hard_black_terminal_bg')
156 let g:srcery_hard_black_terminal_bg=1 204 let g:srcery_hard_black_terminal_bg=1
157 endif 205 endif
180 let g:srcery#palette.bright_magenta = [g:srcery_bright_magenta, 13] 228 let g:srcery#palette.bright_magenta = [g:srcery_bright_magenta, 13]
181 let g:srcery#palette.bright_cyan = [g:srcery_bright_cyan, 14] 229 let g:srcery#palette.bright_cyan = [g:srcery_bright_cyan, 14]
182 let g:srcery#palette.bright_white = [g:srcery_bright_white, 15] 230 let g:srcery#palette.bright_white = [g:srcery_bright_white, 15]
183 231
184 " xterm colors 232 " xterm colors
185 let g:srcery#palette.orange = [g:srcery_orange, 202] 233 let g:srcery#palette.orange = [g:srcery_orange,
186 let g:srcery#palette.bright_orange = [g:srcery_bright_orange, 208] 234 \ g:srcery_orange_cterm]
187 let g:srcery#palette.hard_black = [g:srcery_hard_black, 233] 235 let g:srcery#palette.bright_orange = [g:srcery_bright_orange,
188 let g:srcery#palette.xgray1 = [g:srcery_xgray1, 235] 236 \ g:srcery_bright_orange_cterm]
189 let g:srcery#palette.xgray2 = [g:srcery_xgray2, 236] 237 let g:srcery#palette.hard_black = [g:srcery_hard_black,
190 let g:srcery#palette.xgray3 = [g:srcery_xgray3, 237] 238 \ g:srcery_hard_black_cterm]
191 let g:srcery#palette.xgray4 = [g:srcery_xgray4, 238] 239 let g:srcery#palette.xgray1 = [g:srcery_xgray1, g:srcery_xgray1_cterm]
192 let g:srcery#palette.xgray5 = [g:srcery_xgray5, 239] 240 let g:srcery#palette.xgray2 = [g:srcery_xgray2, g:srcery_xgray2_cterm]
193 let g:srcery#palette.xgray6 = [g:srcery_xgray6, 240] 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]
194 245
195 " }}} 246 " }}}
196 " Setup Emphasis: {{{ 247 " Setup Emphasis: {{{
197 248
198 let g:srcery#palette.bold = 'bold,' 249 let g:srcery#palette.bold = 'bold,'
218 let g:srcery#palette.inverse = 'inverse,' 269 let g:srcery#palette.inverse = 'inverse,'
219 if g:srcery_inverse == 0 270 if g:srcery_inverse == 0
220 let g:srcery#palette.inverse = '' 271 let g:srcery#palette.inverse = ''
221 endif 272 endif
222 273
274 let g:srcery#palette.strikethrough = 'strikethrough,'
275 if g:srcery_strikethrough == 0
276 let g:srcery#palette.strikethrough = ''
277 endif
278
223 " }}} 279 " }}}
224 280
225 " Setup Terminal Colors For Neovim: {{{ 281 " Setup Terminal Colors For Neovim: {{{
226 282
227 if has('nvim') 283 if has('nvim')