cideM / yui

A minimal Vim/Neovim color scheme inspired by Dieter Rams
MIT License
135 stars 6 forks source link

Alternative approach to theming? #37

Closed cideM closed 1 year ago

cideM commented 1 year ago

In #36 I needed to add yet more code that is this awkward translation layer between Lua and Vimscript. I'm wondering if there might be better approaches to theming than what I'm currently doing.

For example, I really like being able to automatically generate terminal colors with Lua, or using Lua functions from HSLuv to adjust the lightness of colors.

But in the end it also really sucks having to find "abstractions" for things like if/else in Vimscript.

Maybe Lua could just define the color palette and then the actual theme itself is once again created in Vimscript.

The only downside of this is that I'd lose the ability to automatically generate documentation which I actually enjoy a lot.