srcery-colors / srcery-vim

Srcery is a dark color scheme with clearly defined contrasting colors and a slightly earthy tone.
https://srcery.sh
Other
826 stars 60 forks source link

getting error when setting colerscheme #72

Closed nobodyatandnothing closed 2 years ago

nobodyatandnothing commented 3 years ago
Error detected while processing /home/username/.config/nvim/colors/srcery.vim:
line  201:
E121: Undefined variable: g:srcey_bright_magenta
E15: Invalid expression: [g:srcey_bright_magenta, 13]
line  317:
E121: Undefined variable: s:bright_magenta
E116: Invalid arguments for function <SNR>23_HL
line  357:
E121: Undefined variable: s:bright_magenta
E15: Invalid expression: s:bright_magenta[0]
line  427:
E121: Undefined variable: s:bright_magenta
E116: Invalid arguments for function <SNR>23_HL
Press ENTER or type command to continue
roosta commented 3 years ago

Hi @nobodyatandnothing , I'm sorry to hear you're having issues. Judging from the log you pasted, seems you installed srcery.vim manually? If that is the case, the colors folder needs to be in the runtimepath. I'm not sure why it wouldn't be, maybe a neovim issue, but we had a user mention something similar in the discord, and they solved it by adding colors to rtp

nobodyatandnothing commented 3 years ago

the colors folder needs to be in the runtimepath.

added colors folder to runtime path in command mode, then tried adding colors folder to runtime path in $MYVIMRC neither helped.

roosta commented 3 years ago

Ok, then I'm gonna need some more info.

nobodyatandnothing commented 3 years ago

$MYVIMRC ::

let &packpath = &runtimepath    

set termguicolors    
set splitbelow    
set splitright    
set mouse=in    
set number    
set showmatch    
set complete-=b,u    

function! InsertTabWrapper()    
    let col = col('.') - 1    
    if !col || getline('.')[col - 1] !~ '\k'    
        return "\<tab>"    
    else    
        return "\<c-p>"    
    endif    
endfunction    
function! InsertsTabWrapper()    
    let col = col('.') - 1    
    if !col || getline('.')[col - 1] !~ '\k'    
        return "\<s-tab>"    
    else    
        return "\<c-n>"    
    endif    
endfunction    
inoremap <expr> <tab> InsertTabWrapper()    
inoremap <expr> <s-tab> InsertsTabWrapper()    

map <S-ScrollWheelDown> <ScrollWheelRight>     
map! <S-ScrollWheelDown> <ScrollWheelRight>    
map <S-ScrollWheelUp> <ScrollWheelLeft>    
map! <S-ScrollWheelUp> <ScrollWheelLeft>    

colo gruvbox    
let g:gruvbox_italic=1     

let $ftp='~/.local/share/nvim/site/ftplugin/'    

ftplugin/python.vim ::
set complete+=k~/.local/share/nvim/wordlists/python_words

nvim/site/autload :: https://github.com/dracula/vim/blob/master/autoload/dracula.vim https://github.com/gruvbox-community/gruvbox/blob/master/autoload/gruvbox.vim https://github.com/srcery-colors/srcery-vim/tree/master/autoload/srcery

NVIM v0.5.1 GNOME Terminal 3.42.0 using VTE 0.64.2 +BIDI +GNUTLS +ICU +SYSTEMD Clear Linux OS 35110

roosta commented 3 years ago

I'm sorry, but using the config you pasted, and on a clean Clear OS v35060 virtual machine, I was unable to reproduce your issue. This is most certainly something outside of srcery's control, and likely a nvim config issue. But I can't help if I can't reproduce.

roosta commented 3 years ago

There was one thing I didn't try, and I suspect the problem might be there. What is that stuff you pasted:

nvim/site/autload :: https://github.com/dracula/vim/blob/master/autoload/dracula.vim https://github.com/gruvbox-community/gruvbox/blob/master/autoload/gruvbox.vim https://github.com/srcery-colors/srcery-vim/tree/master/autoload/srcery

Where does this go?

nobodyatandnothing commented 3 years ago

There was one thing I didn't try, and I suspect the problem might be there. What is that stuff you pasted:

nvim/site/autload :: https://github.com/dracula/vim/blob/master/autoload/dracula.vim https://github.com/gruvbox-community/gruvbox/blob/master/autoload/gruvbox.vim https://github.com/srcery-colors/srcery-vim/tree/master/autoload/srcery

Where does this go?

those files are in ~/.local/share/nvim/site/autoload

roosta commented 3 years ago

I assume you copied the files from that url? I did that and still nothing unfortunately. I thought it might have something to do with autoload since srcery ships with more than just the helper.vim. But even when just coping that over I'm still not seeing any errors.

roosta commented 3 years ago

Funny thing is, like I mentioned earlier, there was this person on the discord. They reported this: image Which seems pretty much identical to what you're experiencing. They claimed they were able to fix it by adding this to runtimepath:

changed to runtimepath+=~/.vim/plug/default/opt and works

Not not necessarily saying the same will work for you, but a bit of a coincident wouldn't you say?

nobodyatandnothing commented 3 years ago

Funny thing is, like I mentioned earlier, there was this person on the discord. They reported this: image Which seems pretty much identical to what you're experiencing. They claimed they were able to fix it by adding this to runtimepath:

changed to runtimepath+=~/.vim/plug/default/opt and works

Not not necessarily saying the same will work for you, but a bit of a coincident wouldn't you say?

i dont have that path, as i use neovim, but adding the colorscheme to my plugins directory just loads the same errors as soon as i open neovim

roosta commented 3 years ago

He was using neovim as well, just got it configured like vim. I'm at a bit of a loss here, I'd love to figure this out but I simply can't reproduce the issue. I'll try messing around with the VM some more, but pending more information, I don't really know...

roosta commented 3 years ago

I found this that seems similar to your issue. The solutions they discuss include rtp and autoload. Another thing they mention is the load order, namely that the runtimepath must be set before assigning colorscheme.

  1. What happens if you remove the autoload stuff?, I was able to run srcery.vim fine without that. It is only used for plugin support, so unless you're using one of the included themes for lightline, airline, clap, those files shouldn't be needed.

  2. What happens when you :source colors/srcery.vim?

See if any of the suggestions in these issues provide any resolution to your problem?

nobodyatandnothing commented 3 years ago
  1. What happens if you remove the autoload stuff?, I was able to run srcery.vim fine without that. It is only used for plugin support, so unless you're using one of the included themes for lightline, airline, clap, those files shouldn't be needed.

nothing changes.

2. What happens when you :source colors/srcery.vim?

i get a similar error message just a bit longer, see below.

Error detected while processing /home/d/.config/nvim/colors/srcery.vim:
line  201:
E121: Undefined variable: g:srcey_bright_magenta
E15: Invalid expression: [g:srcey_bright_magenta, 13]
line  317:
E121: Undefined variable: s:bright_magenta
E116: Invalid arguments for function <SNR>25_HL
line  357:
E121: Undefined variable: s:bright_magenta
E15: Invalid expression: s:bright_magenta[0]
line  427:
E121: Undefined variable: s:bright_magenta
E116: Invalid arguments for function <SNR>25_HL
line  201:
E121: Undefined variable: g:srcey_bright_magenta
E15: Invalid expression: [g:srcey_bright_magenta, 13]
line  317:
E121: Undefined variable: s:bright_magenta
E116: Invalid arguments for function <SNR>25_HL
line  357:
E121: Undefined variable: s:bright_magenta
E15: Invalid expression: s:bright_magenta[0]
line  427:
E121: Undefined variable: s:bright_magenta
E116: Invalid arguments for function <SNR>25_HL
Press ENTER or type command to continue
roosta commented 3 years ago

what does :verbose set rtp? say?

nobodyatandnothing commented 3 years ago

what does :verbose set rtp? say?

  runtimepath=~/.config/nvim,/usr/share/xdg/nvim,/etc/xdg/nvim,~/.local/share/nvim/site,~/.local/share/flatpak/exports
/share/nvim/site,/var/lib/flatpak/exports/share/nvim/site,/usr/local/share/nvim/site,/usr/share/nvim/site,/usr/share/n
vim/runtime,/usr/share/nvim/runtime/pack/dist/opt/matchit,/usr/lib/nvim,/usr/share/nvim/site/after,/usr/local/share/nv
im/site/after,/var/lib/flatpak/exports/share/nvim/site/after,~/.local/share/flatpak/exports/share/nvim/site/after,~/.l
ocal/share/nvim/site/after,/etc/xdg/nvim/after,/usr/share/xdg/nvim/after,~/.config/nvim/after,~/.local/share/nvim/site
/autoload
        Last set from /usr/share/nvim/runtime/plugin/matchit.vim line 3
roosta commented 3 years ago

That looks like I'd expect, maybe runtimepath is a dead end...

christianrickert commented 2 years ago

Are the line endings of your 'srcery.vim' compatible with your OS, i.e. do all lines end in a \n (line feed) character?

nobodyatandnothing commented 2 years ago

Are the line endings of your 'srcery.vim' compatible with your OS, i.e. do all lines end in a \n (line feed) character?

i believe so

$ nvim ~/.config/nvim/colors/srcery.vim
:set ff
   fileformat=unix
:q
$ python
>>> with open('/home/username/.config/nvim/colors/srcery.vim','rb') as d:
...     for i in d.readlines():
...             print(i)
... 
b'" \'srcery.vim\' -- Vim color scheme.\n'
b'" Maintainer:   Roosta (mail@roosta.sh)\n'
b'" Description:  Colorscheme that focus ease of use and clearly defined contrasting colors with a slightly earthy tone.\n'
b'" Original Source: https://github.com/morhetz/gruvbox\n'
b'\n'
b'scriptencoding utf-8\n'
b'\n'
b'set background=dark\n'
b'\n'
b'if v:version > 580\n'
b'  hi clear\n'
b"  if exists('syntax_on')\n"
b'    syntax reset\n'
b'  endif\n'
b'endif\n'
b'\n'
b"let g:colors_name='srcery'\n"
b'\n'
b"if !has('gui_running') && &t_Co != 256\n"
b'  finish\n'
b'endif\n'
b'\n'
b'" Setup Variables: {{{1\n'
b'" Colors {{{2\n'
b'\n'
b"if !exists('g:srcery_black')\n"
b"  let g:srcery_black='#1C1B19'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_red')\n"
b"  let g:srcery_red='#EF2F27'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_green')\n"
b"  let g:srcery_green='#519F50'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_yellow')\n"
b"  let g:srcery_yellow='#FBB829'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_blue')\n"
b"  let g:srcery_blue='#2C78BF'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_magenta')\n"
b"  let g:srcery_magenta='#E02C6D'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_cyan')\n"
b"  let g:srcery_cyan='#0AAEB3'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_white')\n"
b"  let g:srcery_white='#BAA67F'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_bright_black')\n"
b"  let g:srcery_bright_black='#918175'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_bright_red')\n"
b"  let g:srcery_bright_red='#F75341'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_bright_green')\n"
b"  let g:srcery_bright_green='#98BC37'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_bright_yellow')\n"
b"  let g:srcery_bright_yellow='#FED06E'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_bright_blue')\n"
b"  let g:srcery_bright_blue='#68A8E4'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_bright_magenta')\n"
b"  let g:srcery_bright_magenta='#FF5C8F'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_bright_cyan')\n"
b"  let g:srcery_bright_cyan='#2BE4D0'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_bright_white')\n"
b"  let g:srcery_bright_white='#FCE8C3'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_orange')\n"
b"  let g:srcery_orange='#FF5F00'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_bright_orange')\n"
b"  let g:srcery_bright_orange='#FF8700'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_hard_black')\n"
b"  let g:srcery_hard_black='#121212'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_xgray1')\n"
b"  let g:srcery_xgray1='#262626'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_xgray2')\n"
b"  let g:srcery_xgray2='#303030'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_xgray3')\n"
b"  let g:srcery_xgray3='#3A3A3A'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_xgray4')\n"
b"  let g:srcery_xgray4='#444444'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_xgray5')\n"
b"  let g:srcery_xgray5='#4E4E4E'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_xgray6')\n"
b"  let g:srcery_xgray6='#585858'\n"
b'endif\n'
b'\n'
b'" }}}\n'
b'" Options {{{2\n'
b'\n'
b"if !exists('g:srcery_bold')\n"
b'  let g:srcery_bold=1\n'
b'endif\n'
b'\n'
b"if !exists('g:srcery_italic')\n"
b"  if has('gui_running') || $TERM_ITALICS ==? 'true'\n"
b'    let g:srcery_italic=1\n'
b'  else\n'
b'    let g:srcery_italic=0\n'
b'  endif\n'
b'endif\n'
b'\n'
b"if !exists('g:srcery_bg_passthrough')\n"
b'  let g:srcery_bg_passthrough=0\n'
b'endif\n'
b'\n'
b"if !exists('g:srcery_undercurl')\n"
b'  let g:srcery_undercurl=1\n'
b'endif\n'
b'\n'
b"if !exists('g:srcery_underline')\n"
b'  let g:srcery_underline=1\n'
b'endif\n'
b'\n'
b"if !exists('g:srcery_inverse')\n"
b'  let g:srcery_inverse=1\n'
b'endif\n'
b'\n'
b"if !exists('g:srcery_inverse_matches')\n"
b'  let g:srcery_inverse_matches=0\n'
b'endif\n'
b'\n'
b"if !exists('g:srcery_inverse_match_paren')\n"
b'  let g:srcery_inverse_match_paren=0\n'
b'endif\n'
b'\n'
b"if !exists('g:srcery_dim_lisp_paren')\n"
b'  let g:srcery_dim_lisp_paren=0\n'
b'endif\n'
b'\n'
b"if !exists('g:srcery_guisp_fallback') || index(['fg', 'bg'], g:srcery_guisp_fallback) == -1\n"
b"  let g:srcery_guisp_fallback='NONE'\n"
b'endif\n'
b'\n'
b"if !exists('g:srcery_italic_types')\n"
b'  let g:srcery_italic_types=0\n'
b'endif\n'
b'\n'
b"if !exists('g:srcery_hard_black_terminal_bg')\n"
b'  let g:srcery_hard_black_terminal_bg=1\n'
b'endif\n'
b'\n'
b'" }}}\n'
b'" }}}\n'
b'" Palette {{{\n'
b'\n'
b"let s:none           = ['NONE', 'NONE']\n"
b'\n'
b'" 16 base colors\n'
b'let s:black          = [g:srcery_black, 0]\n'
b'let s:red            = [g:srcery_red, 1]\n'
b'let s:green          = [g:srcery_green, 2]\n'
b'let s:yellow         = [g:srcery_yellow, 3]\n'
b'let s:blue           = [g:srcery_blue, 4]\n'
b'let s:magenta        = [g:srcery_magenta, 5]\n'
b'let s:cyan           = [g:srcery_cyan, 6]\n'
b'let s:white          = [g:srcery_white, 7]\n'
b'let s:bright_black   = [g:srcery_bright_black, 8]\n'
b'let s:bright_red     = [g:srcery_bright_red, 9]\n'
b'let s:bright_green   = [g:srcery_bright_green, 10]\n'
b'let s:bright_yellow  = [g:srcery_bright_yellow, 11]\n'
b'let s:bright_blue    = [g:srcery_bright_blue, 12]\n'
b'let s:bright_magenta = [g:srcey_bright_magenta, 13]\n'
b'let s:bright_cyan    = [g:srcery_bright_cyan, 14]\n'
b'let s:bright_white   = [g:srcery_bright_white, 15]\n'
b'\n'
b'" xterm colors.\n'
b'let s:orange         = [g:srcery_orange, 202]\n'
b'let s:bright_orange  = [g:srcery_bright_orange, 208]\n'
b'let s:hard_black     = [g:srcery_hard_black, 233]\n'
b'let s:xgray1         = [g:srcery_xgray1, 235]\n'
b'let s:xgray2         = [g:srcery_xgray2, 236]\n'
b'let s:xgray3         = [g:srcery_xgray3, 237]\n'
b'let s:xgray4         = [g:srcery_xgray4, 238]\n'
b'let s:xgray5         = [g:srcery_xgray5, 239]\n'
b'let s:xgray6         = [g:srcery_xgray6, 240]\n'
b'\n'
b'"}}}\n'
b'" Setup Emphasis: {{{\n'
b'\n'
b"let s:bold = 'bold,'\n"
b'if g:srcery_bold == 0\n'
b"  let s:bold = ''\n"
b'endif\n'
b'\n'
b"let s:italic = 'italic,'\n"
b'if g:srcery_italic == 0\n'
b"  let s:italic = ''\n"
b'endif\n'
b'\n'
b"let s:underline = 'underline,'\n"
b'if g:srcery_underline == 0\n'
b"  let s:underline = ''\n"
b'endif\n'
b'\n'
b"let s:undercurl = 'undercurl,'\n"
b'if g:srcery_undercurl == 0\n'
b"  let s:undercurl = ''\n"
b'endif\n'
b'\n'
b"let s:inverse = 'inverse,'\n"
b'if g:srcery_inverse == 0\n'
b"  let s:inverse = ''\n"
b'endif\n'
b'\n'
b'" }}}\n'
b'" Highlighting Function: {{{\n'
b'\n'
b'function! s:HL(group, fg, ...)\n'
b'  " Arguments: group, guifg, guibg, gui, guisp\n'
b'\n'
b'  " foreground\n'
b'  let l:fg = a:fg\n'
b'\n'
b'  " background\n'
b'  if a:0 >= 1\n'
b'    let l:bg = a:1\n'
b'  else\n'
b'    let l:bg = s:none\n'
b'  endif\n'
b'\n'
b'  " emphasis\n'
b'  if a:0 >= 2 && strlen(a:2)\n'
b'    let l:emstr = a:2\n'
b'  else\n'
b"    let l:emstr = 'NONE,'\n"
b'  endif\n'
b'\n'
b'  " special fallback\n'
b'  if a:0 >= 3\n'
b"    if g:srcery_guisp_fallback !=# 'NONE'\n"
b'      let fg = a:3\n'
b'    endif\n'
b'\n'
b'    " bg fallback mode should invert higlighting\n'
b"    if g:srcery_guisp_fallback ==# 'bg'\n"
b"      let emstr .= 'inverse,'\n"
b'    endif\n'
b'  endif\n'
b'\n'
b"  let l:histring = [ 'hi', a:group,\n"
b"        \\ 'guifg=' . l:fg[0], 'ctermfg=' . l:fg[1],\n"
b"        \\ 'guibg=' . l:bg[0], 'ctermbg=' . l:bg[1],\n"
b"        \\ 'gui=' . l:emstr[:-2], 'cterm=' . l:emstr[:-2]\n"
b'        \\ ]\n'
b'\n'
b'  " special\n'
b'  if a:0 >= 3\n'
b"    call add(l:histring, 'guisp=' . a:3[0])\n"
b'  endif\n'
b'\n'
b"  execute join(l:histring, ' ')\n"
b'endfunction\n'
b'\n'
b'"}}}\n'
b'" Srcery Hi Groups: {{{\n'
b'\n'
b'" memoize common hi groups\n'
b"call s:HL('SrceryWhite', s:white)\n"
b"call s:HL('SrceryRed', s:red)\n"
b"call s:HL('SrceryGreen', s:green)\n"
b"call s:HL('SrceryYellow', s:yellow)\n"
b"call s:HL('SrceryBlue', s:blue)\n"
b"call s:HL('SrceryMagenta', s:magenta)\n"
b"call s:HL('SrceryCyan', s:cyan)\n"
b"call s:HL('SrceryBlack', s:black)\n"
b'\n'
b"call s:HL('SrceryRedBold', s:red, s:none, s:bold)\n"
b"call s:HL('SrceryGreenBold', s:green, s:none, s:bold)\n"
b"call s:HL('SrceryYellowBold', s:yellow, s:none, s:bold)\n"
b"call s:HL('SrceryBlueBold', s:blue, s:none, s:bold)\n"
b"call s:HL('SrceryMagentaBold', s:magenta, s:none, s:bold)\n"
b"call s:HL('SrceryCyanBold', s:cyan, s:none, s:bold)\n"
b'\n'
b"call s:HL('SrceryBrightRed', s:bright_red, s:none)\n"
b"call s:HL('SrceryBrightGreen', s:bright_green, s:none)\n"
b"call s:HL('SrceryBrightYellow', s:bright_yellow, s:none)\n"
b"call s:HL('SrceryBrightBlue', s:bright_blue, s:none)\n"
b"call s:HL('SrceryBrightMagenta', s:bright_magenta, s:none)\n"
b"call s:HL('SrceryBrightCyan', s:bright_cyan, s:none)\n"
b"call s:HL('SrceryBrightBlack', s:bright_black, s:none)\n"
b"call s:HL('SrceryBrightWhite', s:bright_white)\n"
b'\n'
b"call s:HL('SrceryBrightBlueBold', s:bright_blue, s:none, s:bold)\n"
b"call s:HL('SrceryBrightYellowBold', s:bright_yellow, s:none, s:bold)\n"
b'\n'
b'" special\n'
b"call s:HL('SrceryOrange', s:orange)\n"
b"call s:HL('SrceryBrightOrange', s:bright_orange)\n"
b"call s:HL('SrceryOrangeBold', s:orange, s:none, s:bold)\n"
b"call s:HL('SrceryHardBlack', s:hard_black)\n"
b"call s:HL('SrceryXgray1', s:xgray1)\n"
b"call s:HL('SrceryXgray2', s:xgray2)\n"
b"call s:HL('SrceryXgray3', s:xgray3)\n"
b"call s:HL('SrceryXgray4', s:xgray4)\n"
b"call s:HL('SrceryXgray5', s:xgray5)\n"
b"call s:HL('SrceryXgray6', s:xgray6)\n"
b'\n'
b'" }}}\n'
b'" Setup Terminal Colors For Neovim: {{{\n'
b'\n'
b"if has('nvim')\n"
b'  let g:terminal_color_0 = s:black[0]\n'
b'  let g:terminal_color_8 = s:bright_black[0]\n'
b'\n'
b'  let g:terminal_color_1 = s:red[0]\n'
b'  let g:terminal_color_9 = s:bright_red[0]\n'
b'\n'
b'  let g:terminal_color_2 = s:green[0]\n'
b'  let g:terminal_color_10 = s:bright_green[0]\n'
b'\n'
b'  let g:terminal_color_3 = s:yellow[0]\n'
b'  let g:terminal_color_11 = s:bright_yellow[0]\n'
b'\n'
b'  let g:terminal_color_4 = s:blue[0]\n'
b'  let g:terminal_color_12 = s:bright_blue[0]\n'
b'\n'
b'  let g:terminal_color_5 = s:magenta[0]\n'
b'  let g:terminal_color_13 = s:bright_magenta[0]\n'
b'\n'
b'  let g:terminal_color_6 = s:cyan[0]\n'
b'  let g:terminal_color_14 = s:bright_cyan[0]\n'
b'\n'
b'  let g:terminal_color_7 = s:white[0]\n'
b'  let g:terminal_color_15 = s:bright_white[0]\n'
b'endif\n'
b'\n'
b'" }}}\n'
b'" Setup Terminal Colors For Vim with termguicolors: {{{\n'
b'\n'
b"if exists('*term_setansicolors')\n"
b'  let g:terminal_ansi_colors = repeat([0], 16)\n'
b'\n'
b'  let g:terminal_ansi_colors[0] = s:black[0]\n'
b'  let g:terminal_ansi_colors[8] = s:bright_black[0]\n'
b'\n'
b'  let g:terminal_ansi_colors[1] = s:red[0]\n'
b'  let g:terminal_ansi_colors[9] = s:bright_red[0]\n'
b'\n'
b'  let g:terminal_ansi_colors[2] = s:green[0]\n'
b'  let g:terminal_ansi_colors[10] = s:bright_green[0]\n'
b'\n'
b'  let g:terminal_ansi_colors[3] = s:yellow[0]\n'
b'  let g:terminal_ansi_colors[11] = s:bright_yellow[0]\n'
b'\n'
b'  let g:terminal_ansi_colors[4] = s:blue[0]\n'
b'  let g:terminal_ansi_colors[12] = s:bright_blue[0]\n'
b'\n'
b'  let g:terminal_ansi_colors[5] = s:magenta[0]\n'
b'  let g:terminal_ansi_colors[13] = s:bright_magenta[0]\n'
b'\n'
b'  let g:terminal_ansi_colors[6] = s:cyan[0]\n'
b'  let g:terminal_ansi_colors[14] = s:bright_cyan[0]\n'
b'\n'
b'  let g:terminal_ansi_colors[7] = s:white[0]\n'
b'  let g:terminal_ansi_colors[15] = s:bright_white[0]\n'
b'endif\n'
b'\n'
b'" }}}\n'
b'\n'
b'" Vanilla colorscheme ---------------------------------------------------------\n'
b'" General UI: {{{\n'
b'\n'
b'" Normal text\n'
b'"\n'
b"if g:srcery_bg_passthrough == 1 && !has('gui_running')\n"
b"  call s:HL('Normal', s:bright_white, s:none)\n"
b' else\n'
b"  call s:HL('Normal', s:bright_white, s:black)\n"
b'endif\n'
b'\n'
b'if v:version >= 700\n'
b'  " Screen line that the cursor is\n'
b"  call s:HL('CursorLine',   s:none, s:xgray2)\n"
b'  " Screen column that the cursor is\n'
b'  hi! link CursorColumn CursorLine\n'
b'\n'
b"  call s:HL('TabLineFill', s:bright_black, s:xgray2)\n"
b"  call s:HL('TabLineSel', s:bright_white, s:xgray5)\n"
b'\n'
b'  " Not active tab page label\n'
b'  hi! link TabLine TabLineFill\n'
b'\n'
b'  " Match paired bracket under the cursor\n'
b'  "\n'
b'  if g:srcery_inverse_match_paren == 1\n'
b"    call s:HL('MatchParen', s:bright_magenta, s:none, s:inverse . s:bold)\n"
b'  else\n'
b"    call s:HL('MatchParen', s:bright_magenta, s:none, s:bold)\n"
b'  endif\n'
b'endif\n'
b'\n'
b'if v:version >= 703\n'
b'  " Highlighted screen columns\n'
b"  call s:HL('ColorColumn',  s:none, s:xgray2)\n"
b'\n'
b'  " Concealed element: \\lambda \xe2\x86\x92 \xce\xbb\n'
b"  call s:HL('Conceal', s:blue, s:none)\n"
b'\n'
b'  " Line number of CursorLine\n'
b"  if g:srcery_bg_passthrough == 1 && !has('gui_running')\n"
b"    call s:HL('CursorLineNr', s:yellow, s:none)\n"
b'  else\n'
b"    call s:HL('CursorLineNr', s:yellow, s:black)\n"
b'  endif\n'
b'\n'
b'endif\n'
b'\n'
b'hi! link NonText SrceryXgray4\n'
b'hi! link SpecialKey SrceryBlue\n'
b'\n'
b'if g:srcery_inverse == 1\n'
b"  call s:HL('Visual', s:none, s:none, s:inverse)\n"
b'else\n'
b"  call s:HL('Visual', s:none, s:xgray2, s:bold)\n"
b'endif\n'
b'\n'
b'hi! link VisualNOS Visual\n'
b'\n'
b'if g:srcery_inverse == 1 && g:srcery_inverse_matches == 1\n'
b"  call s:HL('Search', s:none, s:none, s:inverse)\n"
b"  call s:HL('IncSearch', s:none, s:none, s:inverse)\n"
b'else\n'
b"  call s:HL('Search', s:none, s:xgray5, s:bold)\n"
b"  call s:HL('IncSearch', s:none, s:xgray5, s:underline . s:bold)\n"
b'endif\n'
b'\n'
b"call s:HL('Underlined', s:blue, s:none, s:underline)\n"
b'\n'
b"call s:HL('StatusLine',   s:bright_white, s:xgray2)\n"
b'\n'
b"if g:srcery_bg_passthrough == 1 && !has('gui_running')\n"
b"  call s:HL('StatusLineNC', s:bright_black, s:none, s:underline)\n"
b'\n'
b'  " The column separating vertically split windows\n'
b"  call s:HL('VertSplit', s:bright_white, s:none)\n"
b'\n'
b'  " Current match in wildmenu completion\n'
b"  call s:HL('WildMenu', s:blue, s:none, s:bold)\n"
b'else\n'
b"  call s:HL('StatusLineNC', s:bright_black, s:black, s:underline)\n"
b"  call s:HL('VertSplit', s:bright_white, s:black)\n"
b"  call s:HL('WildMenu', s:blue, s:black, s:bold)\n"
b'endif\n'
b'\n'
b'" Directory names, special names in listing\n'
b'hi! link Directory SrceryGreenBold\n'
b'\n'
b'" Titles for output from :set all, :autocmd, etc.\n'
b'hi! link Title SrceryGreenBold\n'
b'\n'
b'" Error messages on the command line\n'
b"call s:HL('ErrorMsg', s:bright_white, s:red)\n"
b'" More prompt: -- More --\n'
b'hi! link MoreMsg SrceryYellowBold\n'
b'" Current mode message: -- INSERT --\n'
b'hi! link ModeMsg SrceryYellowBold\n'
b'" \'Press enter\' prompt and yes/no questions\n'
b'hi! link Question SrceryOrangeBold\n'
b'" Warning messages\n'
b'hi! link WarningMsg SrceryRedBold\n'
b'\n'
b'" }}}\n'
b'" Gutter: {{{\n'
b'\n'
b'" Line number for :number and :# commands\n'
b"call s:HL('LineNr', s:bright_black)\n"
b'\n'
b"if g:srcery_bg_passthrough == 1 && !has('gui_running')\n"
b'  " Column where signs are displayed\n'
b'  " TODO Possibly need to fix  SignColumn\n'
b"  call s:HL('SignColumn', s:none, s:none)\n"
b'  " Line used for closed folds\n'
b"  call s:HL('Folded', s:bright_black, s:none, s:italic)\n"
b'  " Column where folds are displayed\n'
b"  call s:HL('FoldColumn', s:bright_black, s:none)\n"
b'else\n'
b"  call s:HL('SignColumn', s:none, s:black)\n"
b"  call s:HL('Folded', s:bright_black, s:black, s:italic)\n"
b"  call s:HL('FoldColumn', s:bright_black, s:black)\n"
b'endif\n'
b'\n'
b'" }}}\n'
b'" Cursor: {{{\n'
b'\n'
b'" Character under cursor\n'
b"call s:HL('Cursor', s:black, s:yellow)\n"
b'" Visual mode cursor, selection\n'
b'hi! link vCursor Cursor\n'
b'" Input moder cursor\n'
b'hi! link iCursor Cursor\n'
b'" Language mapping cursor\n'
b'hi! link lCursor Cursor\n'
b'\n'
b'" }}}\n'
b'" Syntax Highlighting: {{{\n'
b'\n'
b'hi! link Special SrceryOrange\n'
b'\n'
b"call s:HL('Comment', s:bright_black, s:none, s:italic)\n"
b'\n'
b"if g:srcery_bg_passthrough == 1 && !has('gui_running')\n"
b"  call s:HL('Todo', s:bright_white, s:none, s:bold . s:italic)\n"
b'else\n'
b"  call s:HL('Todo', s:bright_white, s:black, s:bold . s:italic)\n"
b'endif\n'
b'\n'
b"call s:HL('Error', s:bright_white, s:red, s:bold)\n"
b'\n'
b'" String constant: "this is a string"\n'
b"call s:HL('String',  s:bright_green)\n"
b'\n'
b'" Generic statement\n'
b'hi! link Statement SrceryRed\n'
b'" if, then, else, endif, swicth, etc.\n'
b'hi! link Conditional SrceryRed\n'
b'" for, do, while, etc.\n'
b'hi! link Repeat SrceryRed\n'
b'" case, default, etc.\n'
b'hi! link Label SrceryRed\n'
b'" try, catch, throw\n'
b'hi! link Exception SrceryRed\n'
b'" sizeof, "+", "*", etc.\n'
b'hi! link Operator Normal\n'
b'" Any other keyword\n'
b'hi! link Keyword SrceryRed\n'
b'\n'
b'" Variable name\n'
b'hi! link Identifier SrceryCyan\n'
b'" Function name\n'
b'hi! link Function SrceryYellow\n'
b'\n'
b'" Generic preprocessor\n'
b'hi! link PreProc SrceryCyan\n'
b'" Preprocessor #include\n'
b'hi! link Include SrceryCyan\n'
b'" Preprocessor #define\n'
b'hi! link Define SrceryCyan\n'
b'" Same as Define\n'
b'hi! link Macro SrceryOrange\n'
b'" Preprocessor #if, #else, #endif, etc.\n'
b'hi! link PreCondit SrceryCyan\n'
b'\n'
b'" Generic constant\n'
b'hi! link Constant SrceryBrightMagenta\n'
b'" Character constant: \'c\', \'/n\'\n'
b'hi! link Character SrceryBrightMagenta\n'
b'" Boolean constant: TRUE, false\n'
b'hi! link Boolean SrceryBrightMagenta\n'
b'" Number constant: 234, 0xff\n'
b'hi! link Number SrceryBrightMagenta\n'
b'" Floating point constant: 2.3e10\n'
b'hi! link Float SrceryBrightMagenta\n'
b'\n'
b'" Generic type\n'
b'if g:srcery_italic_types == 1 && g:srcery_italic == 1\n'
b"  call s:HL('Type', s:bright_blue, s:none, s:italic)\n"
b'else\n'
b'  hi! link Type SrceryBrightBlue\n'
b'end\n'
b'" static, register, volatile, etc\n'
b'hi! link StorageClass SrceryOrange\n'
b'" struct, union, enum, etc.\n'
b'hi! link Structure SrceryCyan\n'
b'" typedef\n'
b'hi! link Typedef SrceryMagenta\n'
b'\n'
b'if g:srcery_dim_lisp_paren == 1\n'
b'  hi! link Delimiter SrceryXgray6\n'
b'else\n'
b'  hi! link Delimiter SrceryBrightBlack\n'
b'endif\n'
b'\n'
b'" }}}\n'
b'" Completion Menu: {{{\n'
b'\n'
b'if v:version >= 700\n'
b'  " Popup menu: normal item\n'
b"  call s:HL('Pmenu', s:bright_white, s:xgray2)\n"
b'  " Popup menu: selected item\n'
b"  call s:HL('PmenuSel', s:bright_white, s:blue, s:bold)\n"
b'\n'
b"  if g:srcery_bg_passthrough == 1 && !has('gui_running')\n"
b'    " Popup menu: scrollbar\n'
b"    call s:HL('PmenuSbar', s:none, s:none)\n"
b'    " Popup menu: scrollbar thumb\n'
b"    call s:HL('PmenuThumb', s:none, s:none)\n"
b'  else\n'
b"    call s:HL('PmenuSbar', s:none, s:black)\n"
b"    call s:HL('PmenuThumb', s:none, s:black)\n"
b'  endif\n'
b'endif\n'
b'\n'
b'" }}}\n'
b'" Diffs: {{{\n'
b'\n'
b"if g:srcery_bg_passthrough == 1 && !has('gui_running')\n"
b"  call s:HL('DiffDelete', s:red, s:none)\n"
b"  call s:HL('DiffAdd',    s:green, s:none)\n"
b"  call s:HL('DiffChange', s:cyan, s:none)\n"
b"  call s:HL('DiffText',   s:yellow, s:none)\n"
b'else\n'
b"  call s:HL('DiffDelete', s:red, s:black)\n"
b"  call s:HL('DiffAdd',    s:green, s:black)\n"
b"  call s:HL('DiffChange', s:cyan, s:black)\n"
b"  call s:HL('DiffText',   s:yellow, s:black)\n"
b'endif\n'
b'\n'
b'" }}}\n'
b'" Spelling: {{{\n'
b'\n'
b"if has('spell')\n"
b'  " Not capitalised word, or compile warnings\n'
b"  call s:HL('SpellCap',   s:green, s:none, s:bold . s:italic)\n"
b'  " Not recognized word\n'
b"  call s:HL('SpellBad',   s:none, s:none, s:undercurl, s:blue)\n"
b'  " Wrong spelling for selected region\n'
b"  call s:HL('SpellLocal', s:none, s:none, s:undercurl, s:cyan)\n"
b'  " Rare word\n'
b"  call s:HL('SpellRare',  s:none, s:none, s:undercurl, s:magenta)\n"
b'endif\n'
b'\n'
b'" }}}\n'
b'" Terminal: {{{\n'
b'\n'
b"if g:srcery_hard_black_terminal_bg == 1 && has('terminal')\n"
b'  " Must set an explicit background as NONE won\'t work\n'
b'  " Therefore not useful with transparent background option\n'
b"  call s:HL('Terminal', s:bright_white, s:hard_black)\n"
b'endif\n'
b'\n'
b'" }}}\n'
b'" Neovim\'s builtin LSP: {{{\n'
b'\n'
b'hi! link LspDiagnosticsDefaultError SrceryBrightRed\n'
b'hi! link LspDiagnosticsDefaultWarning SrceryBrightYellow\n'
b'hi! link LspDiagnosticsDefaultInformation SrceryBrightGreen\n'
b'hi! link LspDiagnosticsDefaultHint SrceryBrightCyan\n'
b"call s:HL('LspDiagnosticsUnderlineError', s:bright_red, s:none, s:underline)\n"
b"call s:HL('LspDiagnosticsUnderlineWarning', s:bright_yellow, s:none, s:underline)\n"
b"call s:HL('LspDiagnosticsUnderlineInformation', s:bright_green, s:none, s:underline)\n"
b"call s:HL('LspDiagnosticsUnderlineHint', s:bright_cyan, s:none, s:underline)\n"
b'\n'
b'" }}}\n'
b'\n'
b'" Plugin specific -------------------------------------------------------------\n'
b'" Sneak: {{{\n'
b'\n'
b'hi! link Sneak Search\n'
b"call s:HL('SneakScope', s:none, s:hard_black)\n"
b'hi! link SneakLabel Search\n'
b'\n'
b'" }}}\n'
b'" Rainbow Parentheses: {{{\n'
b'\n'
b"if !exists('g:rbpt_colorpairs')\n"
b'  let g:rbpt_colorpairs =\n'
b'    \\ [\n'
b"      \\ ['blue',  '#2C78BF'], ['202',  '#FF5F00'],\n"
b"      \\ ['red',  '#EF2F27'], ['magenta', '#E02C6D']\n"
b'    \\ ]\n'
b'endif\n'
b'\n'
b"let g:rainbow_guifgs = [ '#E02C6D', '#EF2F27', '#D75F00', '#2C78BF']\n"
b"let g:rainbow_ctermfgs = [ 'magenta', 'red', '202', 'blue' ]\n"
b'\n'
b"if !exists('g:rainbow_conf')\n"
b'  let g:rainbow_conf = {}\n'
b'endif\n'
b"if !has_key(g:rainbow_conf, 'guifgs')\n"
b"  let g:rainbow_conf['guifgs'] = g:rainbow_guifgs\n"
b'endif\n'
b"if !has_key(g:rainbow_conf, 'ctermfgs')\n"
b"  let g:rainbow_conf['ctermfgs'] = g:rainbow_ctermfgs\n"
b'endif\n'
b'\n'
b'let g:niji_dark_colours = g:rbpt_colorpairs\n'
b'let g:niji_light_colours = g:rbpt_colorpairs\n'
b'\n'
b'"}}}\n'
b'" GitGutter: {{{\n'
b'\n'
b'hi! link GitGutterAdd SrceryGreen\n'
b'hi! link GitGutterChange SrceryYellow\n'
b'hi! link GitGutterDelete SrceryRed\n'
b'hi! link GitGutterChangeDelete SrceryYellow\n'
b'\n'
b'" }}}\n'
b'" GitCommit: "{{{\n'
b'\n'
b'hi! link gitcommitSelectedFile SrceryGreen\n'
b'hi! link gitcommitDiscardedFile SrceryRed\n'
b'\n'
b'" }}}\n'
b'" Asynchronous Lint Engine: {{{\n'
b'\n'
b"call s:HL('ALEError', s:none, s:none, s:undercurl, s:red)\n"
b"call s:HL('ALEWarning', s:none, s:none, s:undercurl, s:yellow)\n"
b"call s:HL('ALEInfo', s:none, s:none, s:undercurl, s:blue)\n"
b'\n'
b'hi! link ALEErrorSign SrceryRed\n'
b'hi! link ALEWarningSign SrceryYellow\n'
b'hi! link ALEInfoSign SrceryBlue\n'
b'\n'
b'" }}}\n'
b'" vim-indent-guides: {{{\n'
b'\n'
b"call s:HL('IndentGuidesEven', s:none, s:xgray3)\n"
b"call s:HL('IndentGuidesOdd',  s:none, s:xgray4)\n"
b'\n'
b'" }}}\n'
b'" vim-startify {{{\n'
b'\n'
b'hi! link StartifyNumber Statement\n'
b'hi! link StartifyFile Normal\n'
b'hi! link StartifyPath String\n'
b'hi! link StartifySlash Normal\n'
b'hi! link StartifyBracket Comment\n'
b'hi! link StartifyHeader Type\n'
b'hi! link StartifyFooter Normal\n'
b'hi! link StartifySpecial Comment\n'
b'hi! link StartifySection Identifier\n'
b'\n'
b'" }}}\n'
b'" fzf: {{{\n'
b'\n'
b"call s:HL('fzf1', s:magenta, s:xgray2)\n"
b"call s:HL('fzf2', s:bright_green, s:xgray2)\n"
b"call s:HL('fzf3', s:bright_white, s:xgray2)\n"
b'\n'
b'"}}}\n'
b'" Netrw: {{{\n'
b'\n'
b'hi! link netrwDir SrceryBlue\n'
b'hi! link netrwClassify SrceryCyan\n'
b'hi! link netrwLink SrceryBrightBlack\n'
b'hi! link netrwSymLink SrceryCyan\n'
b'hi! link netrwExe SrceryYellow\n'
b'hi! link netrwComment SrceryBrightBlack\n'
b'hi! link netrwList SrceryBrightBlue\n'
b'hi! link netrwTreeBar SrceryBrightBlack\n'
b'hi! link netrwHelpCmd SrceryCyan\n'
b'hi! link netrwVersion SrceryGreen\n'
b'hi! link netrwCmdSep SrceryBrightBlack\n'
b'\n'
b'"}}}\n'
b'" coc.nvim: {{{\n'
b'\n'
b'hi! link CocErrorSign SrceryRed\n'
b'hi! link CocWarningSign SrceryBrightOrange\n'
b'hi! link CocInfoSign SrceryYellow\n'
b'hi! link CocHintSign SrceryBlue\n'
b'hi! link CocErrorFloat SrceryRed\n'
b'hi! link CocWarningFloat SrceryOrange\n'
b'hi! link CocInfoFloat SrceryYellow\n'
b'hi! link CocHintFloat SrceryBlue\n'
b'hi! link CocDiagnosticsError SrceryRed\n'
b'hi! link CocDiagnosticsWarning SrceryOrange\n'
b'hi! link CocDiagnosticsInfo SrceryYellow\n'
b'hi! link CocDiagnosticsHint SrceryBlue\n'
b'\n'
b'hi! link CocSelectedText SrceryRed\n'
b'hi! link CocCodeLens SrceryWhite\n'
b'\n'
b"call s:HL('CocErrorHighlight', s:none, s:none, s:undercurl, s:red)\n"
b"call s:HL('CocWarningHighlight', s:none, s:none, s:undercurl, s:bright_orange)\n"
b"call s:HL('CocInfoHighlight', s:none, s:none, s:undercurl, s:yellow)\n"
b"call s:HL('CocHintHighlight', s:none, s:none, s:undercurl, s:blue)\n"
b'\n'
b'" }}}\n'
b'" CtrlP: "{{{\n'
b'"\n'
b'hi! link CtrlPMatch SrceryMagenta\n'
b'hi! link CtrlPLinePre SrceryBrightGreen\n'
b"call s:HL('CtrlPMode1', s:bright_white, s:xgray3)\n"
b"call s:HL('CtrlPMode2', s:bright_white, s:xgray5)\n"
b"call s:HL('CtrlPStats', s:yellow, s:xgray2)\n"
b'\n'
b'" }}}\n'
b'" NERDTree: "{{{\n'
b'\n'
b'hi! link NERDTreeDir SrceryBlue\n'
b'hi! link NERDTreeDirSlash SrceryCyan\n'
b'hi! link NERDTreeOpenable SrceryBlue\n'
b'hi! link NERDTreeClosable SrceryBlue\n'
b'hi! link NERDTreeFile SrceryWhite\n'
b'hi! link NERDTreeExecFile SrceryYellow\n'
b'hi! link NERDTreeUp SrceryOrange\n'
b'hi! link NERDTreeCWD SrceryGreen\n'
b'hi! link NERDTreeHelp SrceryCyan\n'
b'hi! link NERDTreeFlags SrceryCyan\n'
b'hi! link NERDTreeLinkFile SrceryBrightBlack\n'
b'hi! link NERDTreeLinkTarget SrceryBrightBlack\n'
b'\n'
b'" }}}\n'
b'" Telescope: "{{{\n'
b'\n'
b"call s:HL('TelescopeNormal', s:white, s:none)\n"
b"call s:HL('TelescopeSelection', s:green, s:none, s:bold)\n"
b"call s:HL('TelescopeMatching', s:magenta)\n"
b"call s:HL('TelescopeSelectionCaret', s:magenta)\n"
b"call s:HL('TelescopePromptPrefix', s:bright_yellow)\n"
b'\n'
b'" }}}\n'
b'" nvim-treesitter {{{\n'
b'\n'
b"call s:HL('TSStrong', s:none, s:none, s:bold)\n"
b"call s:HL('TSEmphasis', s:none, s:none, s:bold)\n"
b"call s:HL('TSUnderline', s:none, s:none, s:underline)\n"
b'\n'
b'highlight! link TSWarning SrceryOrangeBold\n'
b'highlight! link TSDanger SrceryRedBold\n'
b'highlight! link TSConstBuiltin SrceryCyan\n'
b'highlight! link TSField SrceryGreen\n'
b'highlight! link TSFuncBuiltin SrceryYellow\n'
b'highlight! link TSFuncMacro SrceryOrange\n'
b'highlight! link TSFunction SrceryYellow\n'
b"call s:HL('TSNamespace', s:white, s:none, s:italic)\n"
b"call s:HL('TSParameter', s:cyan, s:none, s:italic)\n"
b'highlight! link TSProperty SrceryBrightBlue\n'
b'highlight! link TSSymbol SrceryBlue\n'
b'highlight! link TSTag SrceryBlue\n'
b'highlight! link TSTagAttribute SrceryYellow\n'
b'highlight! link TSVariableBuiltin SrceryCyan\n'
b'highlight! link TSType SrceryWhite\n'
b'highlight! link TSDelimiter SrceryWhite\n'
b'highlight! link TSURI SrceryGreen\n'
b'highlight! link TSVariable SrceryBrightWhite\n'
b'" }}}\n'
b'\n'
b'\n'
b'" Filetype specific -----------------------------------------------------------\n'
b'" Diff: {{{\n'
b'\n'
b'hi! link diffAdded SrceryGreen\n'
b'hi! link diffRemoved SrceryRed\n'
b'hi! link diffChanged SrceryCyan\n'
b'\n'
b'hi! link diffFile SrceryOrange\n'
b'hi! link diffNewFile SrceryYellow\n'
b'\n'
b'hi! link diffLine SrceryBlue\n'
b'\n'
b'" }}}\n'
b'" Html: {{{\n'
b'\n'
b'hi! link htmlTag SrceryBlue\n'
b'hi! link htmlEndTag SrceryBlue\n'
b'\n'
b'hi! link htmlTagName SrceryBlue\n'
b'hi! link htmlTag SrceryBrightBlack\n'
b'hi! link htmlArg SrceryYellow\n'
b'\n'
b'hi! link htmlScriptTag SrceryRed\n'
b'hi! link htmlTagN SrceryBlue\n'
b'hi! link htmlSpecialTagName SrceryBlue\n'
b'\n'
b"call s:HL('htmlLink', s:bright_white, s:none, s:underline)\n"
b'\n'
b'hi! link htmlSpecialChar SrceryYellow\n'
b'\n'
b"if g:srcery_bg_passthrough == 1 && !has('gui_running')\n"
b"  call s:HL('htmlBold', s:bright_white, s:none, s:bold)\n"
b"  call s:HL('htmlBoldUnderline', s:bright_white, s:none, s:bold . s:underline)\n"
b"  call s:HL('htmlBoldItalic', s:bright_white, s:none, s:bold . s:italic)\n"
b"  call s:HL('htmlBoldUnderlineItalic', s:bright_white, s:none, s:bold . s:underline . s:italic)\n"
b"  call s:HL('htmlUnderline', s:bright_white, s:none, s:underline)\n"
b"  call s:HL('htmlUnderlineItalic', s:bright_white, s:none, s:underline . s:italic)\n"
b"  call s:HL('htmlItalic', s:bright_white, s:none, s:italic)\n"
b'else\n'
b"  call s:HL('htmlBold', s:bright_white, s:black, s:bold)\n"
b"  call s:HL('htmlBoldUnderline', s:bright_white, s:black, s:bold . s:underline)\n"
b"  call s:HL('htmlBoldItalic', s:bright_white, s:black, s:bold . s:italic)\n"
b"  call s:HL('htmlBoldUnderlineItalic', s:bright_white, s:black, s:bold . s:underline . s:italic)\n"
b"  call s:HL('htmlUnderline', s:bright_white, s:black, s:underline)\n"
b"  call s:HL('htmlUnderlineItalic', s:bright_white, s:black, s:underline . s:italic)\n"
b"  call s:HL('htmlItalic', s:bright_white, s:black, s:italic)\n"
b'endif\n'
b'\n'
b'" }}}\n'
b'" Xml: {{{\n'
b'\n'
b'hi! link xmlTag SrceryBlue\n'
b'hi! link xmlEndTag SrceryBlue\n'
b'hi! link xmlTagName SrceryBlue\n'
b'hi! link xmlEqual SrceryBlue\n'
b'hi! link docbkKeyword SrceryCyanBold\n'
b'\n'
b'hi! link xmlDocTypeDecl SrceryBrightBlack\n'
b'hi! link xmlDocTypeKeyword SrceryMagenta\n'
b'hi! link xmlCdataStart SrceryBrightBlack\n'
b'hi! link xmlCdataCdata SrceryMagenta\n'
b'hi! link dtdFunction SrceryBrightBlack\n'
b'hi! link dtdTagName SrceryMagenta\n'
b'\n'
b'hi! link xmlAttrib SrceryCyan\n'
b'hi! link xmlProcessingDelim SrceryBrightBlack\n'
b'hi! link dtdParamEntityPunct SrceryBrightBlack\n'
b'hi! link dtdParamEntityDPunct SrceryBrightBlack\n'
b'hi! link xmlAttribPunct SrceryBrightBlack\n'
b'\n'
b'hi! link xmlEntity SrceryYellow\n'
b'hi! link xmlEntityPunct SrceryYellow\n'
b'\n'
b'" }}}\n'
b'" Vim: {{{\n'
b'\n'
b"call s:HL('vimCommentTitle', s:bright_white, s:none, s:bold . s:italic)\n"
b'\n'
b'hi! link vimNotation SrceryYellow\n'
b'hi! link vimBracket SrceryYellow\n'
b'hi! link vimMapModKey SrceryYellow\n'
b'hi! link vimFuncSID SrceryBrightWhite\n'
b'hi! link vimSetSep SrceryBrightWhite\n'
b'hi! link vimSep SrceryBrightWhite\n'
b'hi! link vimContinue SrceryBrightWhite\n'
b'\n'
b'" }}}\n'
b'" Lisp dialects: {{{\n'
b'\n'
b'if g:srcery_dim_lisp_paren == 1\n'
b'  hi! link schemeParentheses SrceryXgray6\n'
b'  hi! link clojureParen SrceryXgray6\n'
b'else\n'
b'  hi! link schemeParentheses SrceryWhite\n'
b'  hi! link clojureParen SrceryWhite\n'
b'endif\n'
b'\n'
b'hi! link clojureKeyword SrceryBlue\n'
b'hi! link clojureCond SrceryRed\n'
b'hi! link clojureSpecial SrceryRed\n'
b'hi! link clojureDefine SrceryRed\n'
b'\n'
b'hi! link clojureFunc SrceryYellow\n'
b'hi! link clojureRepeat SrceryYellow\n'
b'hi! link clojureCharacter SrceryCyan\n'
b'hi! link clojureStringEscape SrceryCyan\n'
b'hi! link clojureException SrceryRed\n'
b'\n'
b'hi! link clojureRegexp SrceryCyan\n'
b'hi! link clojureRegexpEscape SrceryCyan\n'
b"call s:HL('clojureRegexpCharClass', s:bright_white, s:none, s:bold)\n"
b'hi! link clojureRegexpMod clojureRegexpCharClass\n'
b'hi! link clojureRegexpQuantifier clojureRegexpCharClass\n'
b'\n'
b'hi! link clojureAnonArg SrceryYellow\n'
b'hi! link clojureVariable SrceryBlue\n'
b'hi! link clojureMacro SrceryOrangeBold\n'
b'\n'
b'hi! link clojureMeta SrceryYellow\n'
b'hi! link clojureDeref SrceryYellow\n'
b'hi! link clojureQuote SrceryYellow\n'
b'hi! link clojureUnquote SrceryYellow\n'
b'\n'
b'" }}}\n'
b'" C: {{{\n'
b'\n'
b'hi! link cOperator SrceryMagenta\n'
b'hi! link cStructure SrceryYellow\n'
b'\n'
b'" }}}\n'
b'" Python: {{{\n'
b'\n'
b'hi! link pythonBuiltin SrceryYellow\n'
b'hi! link pythonBuiltinObj SrceryYellow\n'
b'hi! link pythonBuiltinFunc SrceryYellow\n'
b'hi! link pythonFunction SrceryCyan\n'
b'hi! link pythonDecorator SrceryRed\n'
b'hi! link pythonInclude SrceryBlue\n'
b'hi! link pythonImport SrceryBlue\n'
b'hi! link pythonRun SrceryBlue\n'
b'hi! link pythonCoding SrceryBlue\n'
b'hi! link pythonOperator SrceryRed\n'
b'hi! link pythonExceptions SrceryMagenta\n'
b'hi! link pythonBoolean SrceryMagenta\n'
b'hi! link pythonDot SrceryBrightWhite\n'
b'\n'
b'" }}}\n'
b'" CSS/SASS: {{{\n'
b'\n'
b'hi! link cssBraces SrceryBrightWhite\n'
b'hi! link cssFunctionName SrceryYellow\n'
b'hi! link cssIdentifier SrceryBlue\n'
b'hi! link cssClassName SrceryBlue\n'
b'hi! link cssClassNameDot SrceryBlue\n'
b'hi! link cssColor SrceryBrightMagenta\n'
b'hi! link cssSelectorOp SrceryBlue\n'
b'hi! link cssSelectorOp2 SrceryBlue\n'
b'hi! link cssImportant SrceryGreen\n'
b'hi! link cssVendor SrceryBlue\n'
b'hi! link cssMediaProp SrceryYellow\n'
b'hi! link cssBorderProp SrceryYellow\n'
b'hi! link cssAttrComma SrceryBrightWhite\n'
b'\n'
b'hi! link cssTextProp SrceryYellow\n'
b'hi! link cssAnimationProp SrceryYellow\n'
b'hi! link cssUIProp SrceryYellow\n'
b'hi! link cssTransformProp SrceryYellow\n'
b'hi! link cssTransitionProp SrceryYellow\n'
b'hi! link cssPrintProp SrceryYellow\n'
b'hi! link cssPositioningProp SrceryYellow\n'
b'hi! link cssBoxProp SrceryYellow\n'
b'hi! link cssFontDescriptorProp SrceryYellow\n'
b'hi! link cssFlexibleBoxProp SrceryYellow\n'
b'hi! link cssBorderOutlineProp SrceryYellow\n'
b'hi! link cssBackgroundProp SrceryYellow\n'
b'hi! link cssMarginProp SrceryYellow\n'
b'hi! link cssListProp SrceryYellow\n'
b'hi! link cssTableProp SrceryYellow\n'
b'hi! link cssFontProp SrceryYellow\n'
b'hi! link cssPaddingProp SrceryYellow\n'
b'hi! link cssDimensionProp SrceryYellow\n'
b'hi! link cssRenderProp SrceryYellow\n'
b'hi! link cssColorProp SrceryYellow\n'
b'hi! link cssGeneratedContentProp SrceryYellow\n'
b'hi! link cssTagName SrceryBrightBlue\n'
b'\n'
b'" SASS\n'
b'hi! link sassClass SrceryBlue\n'
b'hi! link sassClassChar SrceryBlue\n'
b'hi! link sassVariable SrceryCyan\n'
b'hi! link sassIdChar SrceryBrightBlue\n'
b'hi! link sassId SrceryBrightBlue\n'
b'\n'
b'" }}}\n'
b'" JavaScript: {{{\n'
b'\n'
b'hi! link javascriptMember SrceryBlue\n'
b'hi! link javascriptNull SrceryMagenta\n'
b'\n'
b'hi! link javascriptParens SrceryWhite\n'
b'hi! link javascriptBraces SrceryWhite\n'
b'hi! link javascriptReserved SrceryOrange\n'
b'hi! link javascriptIdentifier SrceryRed\n'
b'\n'
b'hi! link javascriptFuncArg Normal\n'
b'hi! link javascriptDocComment SrceryGreen\n'
b'hi! link javascriptArrayMethod Function\n'
b'hi! link javascriptReflectMethod Function\n'
b'hi! link javascriptStringMethod Function\n'
b'hi! link javascriptObjectMethod Function\n'
b'hi! link javascriptObjectStaticMethod Function\n'
b'hi! link javascriptObjectLabel SrceryBlue\n'
b'hi! link javascriptFunction SrceryRed\n'
b'\n'
b'hi! link javascriptProp SrceryBlue\n'
b'\n'
b'hi! link javascriptVariable SrceryBrightBlue\n'
b'hi! link javascriptOperator SrceryBrightCyan\n'
b'hi! link javascriptFuncKeyword SrceryBrightRed\n'
b'hi! link javascriptFunctionMethod SrceryYellow\n'
b'hi! link javascriptReturn SrceryBrightRed\n'
b'hi! link javascriptEndColons SrceryWhite\n'
b'\n'
b'" vim-javascript\n'
b'hi! link jsFunction SrceryRed\n'
b'hi! link jsImport SrceryRed\n'
b'hi! link jsObjectSeparator SrceryWhite\n'
b'hi! link jsParens SrceryWhite\n'
b'hi! link jsFuncParens SrceryWhite\n'
b'hi! link jsNoise SrceryWhite\n'
b'hi! link jsEnvComment SrceryBrightBlack\n'
b'hi! link jsOperator SrceryBrightCyan\n'
b'\n'
b'" }}}\n'
b'" CoffeeScript: {{{\n'
b'\n'
b'hi! link coffeeExtendedOp SrceryBrightWhite\n'
b'hi! link coffeeSpecialOp SrceryBrightWhite\n'
b'hi! link coffeeCurly SrceryYellow\n'
b'hi! link coffeeParen SrceryBrightWhite\n'
b'hi! link coffeeBracket SrceryYellow\n'
b'\n'
b'" }}}\n'
b'" Ruby: {{{\n'
b'\n'
b'hi! link rubyStringDelimiter SrceryGreen\n'
b'hi! link rubyInterpolationDelimiter SrceryCyan\n'
b'hi! link rubyDefine Keyword\n'
b'\n'
b'" }}}\n'
b'" ObjectiveC: {{{\n'
b'\n'
b'hi! link objcTypeModifier SrceryRed\n'
b'hi! link objcDirective SrceryBlue\n'
b'\n'
b'" }}}\n'
b'" Go: {{{\n'
b'\n'
b'hi! link goDirective SrceryCyan\n'
b'hi! link goConstants SrceryMagenta\n'
b'hi! link goDeclaration SrceryRed\n'
b'hi! link goDeclType SrceryBlue\n'
b'hi! link goBuiltins SrceryYellow\n'
b'\n'
b'" }}}\n'
b'" Lua: {{{\n'
b'\n'
b'hi! link luaIn SrceryRed\n'
b'hi! link luaFunction SrceryCyan\n'
b'hi! link luaTable SrceryYellow\n'
b'\n'
b'" }}}\n'
b'" MoonScript: {{{\n'
b'\n'
b'hi! link moonSpecialOp SrceryBrightWhite\n'
b'hi! link moonExtendedOp SrceryBrightWhite\n'
b'hi! link moonFunction SrceryBrightWhite\n'
b'hi! link moonObject SrceryYellow\n'
b'\n'
b'" }}}\n'
b'" Java: {{{\n'
b'\n'
b'hi! link javaAnnotation SrceryBlue\n'
b'hi! link javaDocTags SrceryCyan\n'
b'hi! link javaCommentTitle vimCommentTitle\n'
b'hi! link javaParen SrceryBrightWhite\n'
b'hi! link javaParen1 SrceryBrightWhite\n'
b'hi! link javaParen2 SrceryBrightWhite\n'
b'hi! link javaParen3 SrceryBrightWhite\n'
b'hi! link javaParen4 SrceryBrightWhite\n'
b'hi! link javaParen5 SrceryBrightWhite\n'
b'hi! link javaOperator SrceryYellow\n'
b'\n'
b'hi! link javaVarArg SrceryGreen\n'
b'\n'
b'" }}}\n'
b'" Elixir: {{{\n'
b'\n'
b'hi! link elixirDocString Comment\n'
b'\n'
b'hi! link elixirStringDelimiter SrceryGreen\n'
b'hi! link elixirInterpolationDelimiter SrceryCyan\n'
b'\n'
b'" }}}\n'
b'" Scala: {{{\n'
b'\n'
b'" NB: scala vim syntax file is kinda horrible\n'
b'hi! link scalaNameDefinition SrceryBlue\n'
b'hi! link scalaCaseFollowing SrceryBlue\n'
b'hi! link scalaCapitalWord SrceryBlue\n'
b'hi! link scalaTypeExtension SrceryBlue\n'
b'\n'
b'hi! link scalaKeyword SrceryRed\n'
b'hi! link scalaKeywordModifier SrceryRed\n'
b'\n'
b'hi! link scalaSpecial SrceryCyan\n'
b'hi! link scalaOperator SrceryBlue\n'
b'\n'
b'hi! link scalaTypeDeclaration SrceryYellow\n'
b'hi! link scalaTypeTypePostDeclaration SrceryYellow\n'
b'\n'
b'hi! link scalaInstanceDeclaration SrceryBlue\n'
b'hi! link scalaInterpolation SrceryCyan\n'
b'\n'
b'" }}}\n'
b'" Markdown: {{{\n'
b'\n'
b"call s:HL('markdownItalic', s:bright_white, s:none, s:italic)\n"
b'\n'
b'hi! link markdownH1 SrceryBrightBlueBold\n'
b'hi! link markdownH2 SrceryBrightBlueBold\n'
b'hi! link markdownH3 SrceryBrightYellowBold\n'
b'hi! link markdownH4 SrceryBrightYellowBold\n'
b'hi! link markdownH5 SrceryYellowBold\n'
b'hi! link markdownH6 SrceryYellowBold\n'
b'\n'
b'hi! link markdownCode SrceryWhite\n'
b'hi! link markdownCodeBlock SrceryWhite\n'
b'hi! link markdownCodeDelimiter SrceryWhite\n'
b'\n'
b'hi! link markdownBlockquote SrceryBrightBlack\n'
b'hi! link markdownListMarker SrceryBrightBlack\n'
b'hi! link markdownOrderedListMarker SrceryBrightBlack\n'
b'hi! link markdownRule SrceryBrightBlack\n'
b'hi! link markdownHeadingRule SrceryBrightBlack\n'
b'\n'
b'hi! link markdownUrlDelimiter SrceryBrightBlack\n'
b'hi! link markdownLinkDelimiter SrceryBrightBlack\n'
b'hi! link markdownLinkTextDelimiter SrceryBrightBlack\n'
b'\n'
b'hi! link markdownHeadingDelimiter SrceryBrightBlack\n'
b'hi! link markdownUrl SrceryBrightGreen\n'
b'hi! link markdownUrlTitleDelimiter SrceryGreen\n'
b'\n'
b"call s:HL('markdownLinkText', s:bright_white, s:none, s:underline)\n"
b'hi! link markdownIdDeclaration markdownLinkText\n'
b'\n'
b'" }}}\n'
b'" Haskell: {{{\n'
b'\n'
b'" hi! link haskellType SrceryYellow\n'
b'" hi! link haskellOperators SrceryYellow\n'
b'" hi! link haskellConditional SrceryCyan\n'
b'" hi! link haskellLet SrceryYellow\n'
b'\n'
b'hi! link haskellType SrceryBlue\n'
b'hi! link haskellIdentifier SrceryBlue\n'
b'hi! link haskellSeparator SrceryBlue\n'
b'hi! link haskellDelimiter SrceryBrightWhite\n'
b'hi! link haskellOperators SrceryBlue\n'
b'\n'
b'hi! link haskellBacktick SrceryYellow\n'
b'hi! link haskellStatement SrceryYellow\n'
b'hi! link haskellConditional SrceryYellow\n'
b'\n'
b'hi! link haskellLet SrceryCyan\n'
b'hi! link haskellDefault SrceryCyan\n'
b'hi! link haskellWhere SrceryCyan\n'
b'hi! link haskellBottom SrceryCyan\n'
b'hi! link haskellBlockKeywords SrceryCyan\n'
b'hi! link haskellImportKeywords SrceryCyan\n'
b'hi! link haskellDeclKeyword SrceryCyan\n'
b'hi! link haskellDeriving SrceryCyan\n'
b'hi! link haskellAssocType SrceryCyan\n'
b'\n'
b'hi! link haskellNumber SrceryMagenta\n'
b'hi! link haskellPragma SrceryMagenta\n'
b'\n'
b'hi! link haskellString SrceryGreen\n'
b'hi! link haskellChar SrceryGreen\n'
b'\n'
b'" }}}\n'
b'" Json: {{{\n'
b'\n'
b'hi! link jsonKeyword SrceryGreen\n'
b'hi! link jsonQuote SrceryGreen\n'
b'hi! link jsonBraces SrceryBlue\n'
b'hi! link jsonString SrceryBlue\n'
b'\n'
b'" }}}\n'
b'" Rust: {{{\n'
b'\n'
b'"https://github.com/rust-lang/rust.vim/blob/master/syntax/rust.vim\n'
b'hi! link rustCommentLineDoc SrceryGreen\n'
b'hi! link rustModPathSep SrceryBrightBlack\n'
b'\n'
b'" }}}\n'
b'" Make: {{{\n'
b'\n'
b'hi! link makePreCondit SrceryRed\n'
b'hi! link makeCommands SrceryBrightWhite\n'
b'hi! link makeTarget SrceryYellow\n'
b'\n'
b'" }}}\n'
b'" shell script: {{{\n'
b'\n'
b"call s:HL('shParenError', s:bright_white, s:bright_red)\n"
b'hi! link shCmdSubRegion SrceryWhite\n'
b'hi! link shArithRegion SrceryWhite\n'
b'hi! link shArithRegion SrceryWhite\n'
b'hi! link shQuote SrceryWhite\n'
b'hi! link shRedir SrceryMagenta\n'
b'hi! link shOption SrceryBrightYellow\n'
b'hi! link shCommandSub SrceryBrightRed\n'
b'\n'
b'" }}}\n'
b'" Misc: {{{\n'
b'\n'
b"call s:HL('ExtraWhitespace', s:none, s:red)\n"
b'" }}}\n'
b'\n'
b'" vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker :\n'
christianrickert commented 2 years ago

@nobodyatandnothing Here's what I was thinking: What if the color variable definitions are not yet defined (as the error message indicated) or not readable (that's what we've just checked)?

From your $MYVIMRC:

colo gruvbox

There's no indication that the srcery color scheme is initialized at this point. You said you copied the colors folder manually or made it accessible through the path. However, it looks like the helper.vim is responsible for initializing the colors before assigning values:

  let l:gui_color = synIDattr(hlID(a:group), l:what, 'gui')
  let l:term_color = synIDattr(hlID(a:group), l:what, 'cterm')

  return [ l:gui_color, l:term_color ]

@roosta Does the helper.vim need to be in the autoload folder for variable initialization?

roosta commented 2 years ago

Hi @christianrickert, thanks for looking into this, I'm stumped. The helper.vim shouldn't be necessary, its only used for plugin support. I've tried loading just srcery.vim in colors and that works just fine on my end.

roosta commented 2 years ago

the colorscheme should be available as long as colors is on rtp, which it seems to be, so there is no initialization needed. I've tried @nobodyatandnothing config verbatum, and it works on a clean vm, and on my arch here.

christianrickert commented 2 years ago

@roosta Thanks for the clarification about the helper.vim.

I'm similarly stumped by this issue: What would make g:srcery_bright_magenta special? It is the longest variable name... As you can see, I had to resort to consulting my magic ball! 🔮😂

The only thing I can currently think of would be a parsing error by NeoVim, since this seems to be the common denominator. In contrast, I'm using Vim with this version: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Oct 26 2021 22:02:44.

@nobodyatandnothing Would you mind testing with a vanilla version of NeoVim (just the srcery color scheme installed by a package manager)? If the error persists, there might be a compatibility issue with NeoVim rather than a bug in the srcery code per se.

roosta commented 2 years ago

hehe, I don't honestly know why the logs complain about that color in particular, I just sorta assumed the logs were truncated when printed, but now that you mention it...what does make that special?

roosta commented 2 years ago

hmm, heres something:

E121: Undefined variable: g:srcey_bright_magenta
E15: Invalid expression: [g:srcey_bright_magenta, 13]

srcery is spelled wrong, but its not in source. what could cause that?

roosta commented 2 years ago

@nobodyatandnothing have you redefined colors somewhere and mistyped the name?

roosta commented 2 years ago

Yeah, the source you pasted @nobodyatandnothing isn't correct, you must've removed a char by accident ~/.config/nvim/colors/srcery.vim

b'let s:bright_magenta = [g:srcey_bright_magenta, 13]\n'
christianrickert commented 2 years ago

Well spotted! 👏

roosta commented 2 years ago

That leaves me to wonder how come two people reported the same error? Just noticed now that the person on discord reported the exact same thing, same spelling mistake. The source isn't from github?

christianrickert commented 2 years ago

I was wondering if there was a version of your code with that exact spelling issue? However, I couldn't find anything in the repo history (with the Github search) regarding a fixed typo.

nobodyatandnothing commented 2 years ago

i corrected the file, and now there is no error. thank you.

roosta commented 2 years ago

Thats good, but where'd you get the source file from? There isn't any reference in the source that I can find to that typo, and seeing as there are two instances of the same error it seems unlikely you both did the same thing.

nobodyatandnothing commented 2 years ago

Thats good, but where'd you get the source file from? There isn't any reference in the source that I can find to that typo, and seeing as there are two instances of the same error it seems unlikely you both did the same thing.

my guess is that there is a very subtle bug somewhere that caused the typo when copying the file from here and pasting in the editor.