Rigellute / rigel

🌌 Colorscheme for vim, terminal, vscode and slack - based on the star Rigel ✨.
https://rigel.netlify.com/
512 stars 37 forks source link

Issue with terminal color #10

Closed arashm closed 4 years ago

arashm commented 4 years ago

I think the last commit has caused some issue with my VIM. Every time I run vim I get the following error:

Error detected while processing function <SNR>56_AddAnsiGroups:
line   18:
E254: Cannot allocate color 0
E254: Cannot allocate color 0
Press ENTER or type command to continue

That is a function in coc.nvim. It seems like the g:terminal_ansi_colors has a wrong value that causes this.

:echo g:terminal_ansi_colors
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Rigellute commented 4 years ago

Hmmm... Looks like the latest version of estilo (which I used in tha last commit) added this line to the generated vim config

if exists('*term_setansicolors')
  let g:terminal_ansi_colors = repeat([0], 16)
endif

Will investigate what this is for

Rigellute commented 4 years ago

I've reverted to the previous version estilo, which should fix the issue you were facing.

arashm commented 4 years ago

Thank you! I don't see the errors anymore.