dylanaraps / wal.vim

🎨 A vim colorscheme for use with wal
MIT License
220 stars 41 forks source link

problem with lightline #5

Open pasau opened 6 years ago

pasau commented 6 years ago

Hi, i have trouble using the wal.vim lightline colorscheme

i add this in my .vimrc:

let g:lightline = {
            \ 'colorscheme': 'wal',
            \ }

and i get the following error:

Error detected while processing function lightline#update[3]..lightline#colorscheme[18]..lightline#highlight:
line   18:
E254: Cannot allocate color guibg=
Error detected while processing function lightline#update:
line    3:
E171: Missing :endif

If i change the content of wal.vim/autoload/lightline/colorscheme/wal.vim to the content of another random lightline colorscheme and replacing the word "wal" to the name of the other file, i don't get any problem

arjunramaswami commented 6 years ago

Same here. I'm trying to look into the code to figure this out. Check the lightline#highlight function in the file lightline.vim. There are these guibg, which I reckon are background gui something. Let me know if you have any leads. Will look into this further later.

dylanaraps commented 6 years ago

I can't reproduce this, the lightline theme works fine for me. Can you guys send me your vimrc files?

arjunramaswami commented 6 years ago

Here, I changed the lightline's colorscheme to wal.

kingkobra87 commented 6 years ago

I realize this is an old issue, but I also couldn't reproduce the problem. However, I have forked this project on Gitlab, where I completely overhauled the Lightline theme. It's much different than than @dylanaraps version here, but you might like it. Get it here. Hopefully this one doesn't error out for you.

sieken commented 6 years ago

This seems to be related. I had the same issue, but replacing the empty color strings with hex color values fixes the problem.

Not sure what to put there instead of all black though. scrot

electricsoldier commented 5 years ago

Hi there, I was having the same issue as above on a new arch install. Wal.vim is working for vim's colorscheme, but not lightline (same errors as described above). Changing the values as 'sieken' did in the post before me did fix this though. Just thought I'd add this to the discussion. Happy to send any dotfiles if needed to troubleshoot. Aside from that, thanks for your awesome color scheming apps!

kyokeunpark commented 4 years ago

I made a small tweak to the lightline wal theme here for those who are still struggling with it. It essentially just inherits the colors from the colorscheme.