danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
1.24k stars 160 forks source link

starship: add support #301

Open gabevenberg opened 8 months ago

gabevenberg commented 8 months ago

Starship is a terminal prompt generator, would be nice to be able to have the starship prompt follow the rest of the theming.

donovanglover commented 8 months ago

Doesn't starship use the terminal colors by default? I assume manually specifying colors would conflict with other applications like wallust.

danth commented 8 months ago

Yes, it does.

Starship also supports setting colors within its own config.

Providing a module specifically for Starship would have the following advantages:

And disadvantages:

gabevenberg commented 8 months ago

Yes, it does.

Starship also supports setting colors within its own config.

Hmm, I jumped right into explicit colours, so I didnt know that it followed the terminal by default. Since stylx doesnt seem to provide a way to do 'manual' integration ala nix-colors, I assumed it wasnt possible.

danth commented 8 months ago

We do have something similar, but it's not mentioned in the documentation yet: config.lib.stylix.colors is a scheme attrset from base16.nix.