Mercurial > ec-dotfiles
diff 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 |
line wrap: on
line diff
--- a/vendor/vim-packs/srcery-vim/autoload/srcery.vim Mon Aug 19 17:03:52 2024 +0900 +++ b/vendor/vim-packs/srcery-vim/autoload/srcery.vim Mon Aug 19 17:04:13 2024 +0900 @@ -69,38 +69,74 @@ let g:srcery_orange='#FF5F00' endif +if !exists('g:srcery_orange_cterm') + let g:srcery_orange_cterm=202 +endif + if !exists('g:srcery_bright_orange') let g:srcery_bright_orange='#FF8700' endif +if !exists('g:srcery_bright_orange_cterm') + let g:srcery_bright_orange_cterm=208 +endif + if !exists('g:srcery_hard_black') let g:srcery_hard_black='#121212' endif +if !exists('g:srcery_hard_black_cterm') + let g:srcery_hard_black_cterm=233 +endif + if !exists('g:srcery_xgray1') let g:srcery_xgray1='#262626' endif +if !exists('g:srcery_xgray1_cterm') + let g:srcery_xgray1_cterm=235 +endif + if !exists('g:srcery_xgray2') let g:srcery_xgray2='#303030' endif +if !exists('g:srcery_xgray2_cterm') + let g:srcery_xgray2_cterm=236 +endif + if !exists('g:srcery_xgray3') let g:srcery_xgray3='#3A3A3A' endif +if !exists('g:srcery_xgray3_cterm') + let g:srcery_xgray3_cterm=237 +endif + if !exists('g:srcery_xgray4') let g:srcery_xgray4='#444444' endif +if !exists('g:srcery_xgray4_cterm') + let g:srcery_xgray4_cterm=238 +endif + if !exists('g:srcery_xgray5') let g:srcery_xgray5='#4E4E4E' endif +if !exists('g:srcery_xgray5_cterm') + let g:srcery_xgray5_cterm=239 +endif + if !exists('g:srcery_xgray6') let g:srcery_xgray6='#585858' endif +if !exists('g:srcery_xgray6_cterm') + let g:srcery_xgray6_cterm=240 +endif + " }}} " Options {{{ @@ -116,10 +152,6 @@ endif endif -if !exists('g:srcery_bg_passthrough') - let g:srcery_bg_passthrough=0 -endif - if !exists('g:srcery_undercurl') let g:srcery_undercurl=1 endif @@ -128,6 +160,10 @@ let g:srcery_underline=1 endif +if !exists('g:srcery_strikethrough') + let g:srcery_strikethrough=1 +endif + if !exists('g:srcery_inverse') let g:srcery_inverse=1 endif @@ -152,6 +188,18 @@ let g:srcery_italic_types=0 endif +if !exists('g:srcery_bg') + "Sets the default color for both guisp and cterm backgrounds. + let g:srcery_bg=[g:srcery_black, 0] +elseif (index(g:srcery_bg, 'DEFAULT') >= 0) || (index(g:srcery_bg, 'NONE') >= 0 && has('gui_running')) + "Defaults should be set if the user specifies it, or if the background is set as 'NONE' whilst the gui is running. + for i in [0, 1] + if g:srcery_bg[i] ==# 'DEFAULT' || (g:srcery_bg[i] ==# 'NONE' && has('gui_running')) + let g:srcery_bg[i] = (i==1 ? 0 : g:srcery_black) + endif + endfor +endif + if !exists('g:srcery_hard_black_terminal_bg') let g:srcery_hard_black_terminal_bg=1 endif @@ -182,15 +230,18 @@ let g:srcery#palette.bright_white = [g:srcery_bright_white, 15] " xterm colors -let g:srcery#palette.orange = [g:srcery_orange, 202] -let g:srcery#palette.bright_orange = [g:srcery_bright_orange, 208] -let g:srcery#palette.hard_black = [g:srcery_hard_black, 233] -let g:srcery#palette.xgray1 = [g:srcery_xgray1, 235] -let g:srcery#palette.xgray2 = [g:srcery_xgray2, 236] -let g:srcery#palette.xgray3 = [g:srcery_xgray3, 237] -let g:srcery#palette.xgray4 = [g:srcery_xgray4, 238] -let g:srcery#palette.xgray5 = [g:srcery_xgray5, 239] -let g:srcery#palette.xgray6 = [g:srcery_xgray6, 240] +let g:srcery#palette.orange = [g:srcery_orange, + \ g:srcery_orange_cterm] +let g:srcery#palette.bright_orange = [g:srcery_bright_orange, + \ g:srcery_bright_orange_cterm] +let g:srcery#palette.hard_black = [g:srcery_hard_black, + \ g:srcery_hard_black_cterm] +let g:srcery#palette.xgray1 = [g:srcery_xgray1, g:srcery_xgray1_cterm] +let g:srcery#palette.xgray2 = [g:srcery_xgray2, g:srcery_xgray2_cterm] +let g:srcery#palette.xgray3 = [g:srcery_xgray3, g:srcery_xgray3_cterm] +let g:srcery#palette.xgray4 = [g:srcery_xgray4, g:srcery_xgray4_cterm] +let g:srcery#palette.xgray5 = [g:srcery_xgray5, g:srcery_xgray5_cterm] +let g:srcery#palette.xgray6 = [g:srcery_xgray6, g:srcery_xgray6_cterm] " }}} " Setup Emphasis: {{{ @@ -220,6 +271,11 @@ let g:srcery#palette.inverse = '' endif +let g:srcery#palette.strikethrough = 'strikethrough,' +if g:srcery_strikethrough == 0 + let g:srcery#palette.strikethrough = '' +endif + " }}} " Setup Terminal Colors For Neovim: {{{