ayu-theme / ayu-vim

Modern theme for modern VIMs
Apache License 2.0
1.7k stars 187 forks source link

Fixes "E474: Invalid argument" #72

Open marcoslhc opened 2 years ago

marcoslhc commented 2 years ago

This line treats background option set as a get when using the &background identifier. It should be background without the &

Luxed commented 2 years ago

The let &varname = '' is a syntax that allows you to assign some arbitrary values to an option. So in theory, it is correct to use it this way.

In reality, the background option only accepts light and dark as a value. I am guessing you are using the mirage theme which might make it crash.

Since this issue might not be resolved, I recommend you use my fork (found here: https://github.com/Luxed/ayu-vim) instead.

FuDesign2008 commented 2 years ago

The let &varname = '' is a syntax that allows you to assign some arbitrary values to an option. So in theory, it is correct to use it this way.

In reality, the background option only accepts light and dark as a value. I am guessing you are using the mirage theme which might make it crash.

Since this issue might not be resolved, I recommend you use my fork (found here: https://github.com/Luxed/ayu-vim) instead.

Pull request https://github.com/ayu-theme/ayu-vim/pull/75 created