Neat idea for a plugin!
I was getting an "Unsupported color scheme" exception even after setting the cterm environment variables. I patched it below, though I'm not sure if this was the behavior you wanted.
I didn't look into patching the tests to cover this case, but that'd probably make sense to do.
Stop throwing exceptions in cterm vim.
Hi. There's already a test case for the scenario. See https://github.com/junegunn/limelight.vim/blob/master/test/limelight.vader#L101-L118. Did you start Limelight with an argument? (interpolation coefficient) The optional argument doesn't make sense when the background color can't be calculated and is fixed by the variable, so it throws an exception in that case. (The behavior is not explicitly documented so I understand that you may find it confusing.) So :Limelight without argument should work. Let me know if it doesn't.
Okay, I just realized that the error message is incorrect in that case.
Unsupported color scheme. g:limelight_conceal_ctermfg required.
Will fix it.
Add failing test case for invalid message (#4)
Fix error message (#4)
I've fixed the message. What do you think?
" Unsupported color scheme. g:limelight_conceal_ctermfg fg required.
let g:limelight_conceal_ctermfg = 'red'
" Cannot calculate background color.
Hey there! Yes, that makes sense. I called :Limelight with an argument. It works great without the argument.
The updated error message definitely makes more sense. Might want to elaborate either in the README, /doc, or in the error message about calling :Limelight without an argument, but this is great!