fenetikm / falcon

A colour scheme for terminals, Vim and friends.
MIT License
719 stars 26 forks source link

Fresh Install Error: Undefined g:colors_name #25

Closed filipekiss closed 5 years ago

filipekiss commented 5 years ago

hey @fenetikm!

Just set-up a new ubuntu machine, installed my vim config and was getting this error:

Error detected while processing /home/filipekiss/.dotfiles/sidekicks/vim/plugged/falcon/plugin/falcon.vim:
line    2:
E121: Undefined variable: g:colors_name
E15: Invalid expression: g:colors_name != "falcon"
Press ENTER or type command to continue

Looking around repo issues I came across #23 and then found 1fff7b302f80efff90390f33ab420c62d6a56ec6. Changin line 2 to the code below gets rid of the error:

" Guard
if exists('g:colors_name') && g:colors_name != "falcon"
  finish
endif

Hope this helps!

fenetikm commented 5 years ago

Oooo, thanks! Have pushed that.

filipekiss commented 5 years ago

Great! Glad to help!

ChiliConSql commented 5 years ago

I just downloaded it, and I'm getting the same error. I'm using neovim 0.3.4

fenetikm commented 5 years ago

can you please post the error you get, just to make sure? @ChiliConSql

ChiliConSql commented 5 years ago

I think I fixed it. I created a PR.

fenetikm commented 5 years ago

I have updated master with some additional code as per your PR. Thanks!