ray-x / aurora

A vivid dark theme for modern Neovim.
https://github.com/ray-x/aurora
MIT License
345 stars 6 forks source link

Cannot allocate color 0 #2

Closed igorsol closed 3 years ago

igorsol commented 3 years ago

When I try to start Vim with aurora colorscheme I see these errors:

Error detected while processing /home/user/.vim/bundle/coc.nvim/plugin/coc.vim[455]..function <SNR>27_Hi[51]..<SNR>27_AddAnsiGroups:
line   18:
E254: Cannot allocate color 0
E254: Cannot allocate color 0
Error detected while processing /home/user/.vim/bundle/glyph-palette.vim/plugin/glyph_palette.vim[7]..function glyph_palette#defaults#highlight[1]..<SNR>39_highlight:
line    3:
E254: Cannot allocate color 0
Press ENTER or type command to continue

After pressing ENTER several more lines with error messages appear:

Error detected while processing VimEnter Autocommands for "*"..function <SNR>33_on_vimenter[5]..startify#insane_in_the_membrane[121]..FileType Autocommands for "startify"..function glyph_palette#apply[16]..<SNR>9
2_apply[8]..<lambda>14:
line    1:
E28: No such highlight group name: GlyphPalette9
Press ENTER or type command to continue
ray-x commented 3 years ago

Is it with termguicolors ?

igorsol commented 3 years ago

Yes I have this in my vimrc:

if has('termguicolors')
  set termguicolors
endif

And I believe it works correctly because I have many other colorschemes working.

igorsol commented 3 years ago

Probably this similar error will be useful for debugging: https://github.com/dracula/vim/issues/93

ray-x commented 3 years ago

Issue should have been fix in the latest version. It is related to vim and I am using neovim for more than a year and did not see this issue.

igorsol commented 3 years ago

I can confirm: now it works. Thanks!

ray-x commented 3 years ago

Great!