nix-community / nixvim

Configure Neovim with Nix! [maintainers=@GaetanLepage, @traxys, @mattsturgeon, @khaneliman]
https://nix-community.github.io/nixvim
MIT License
1.72k stars 264 forks source link

[PLUGIN REQUEST] Stylix theme #1628

Closed GideonWolfe closed 4 months ago

GideonWolfe commented 4 months ago
Field Description
Plugin N/A
Homepage https://github.com/danth/stylix https://github.com/danth/stylix
Nixpkgs false false

Extra Information

I really like how you've integrated themes like catppuccin into nixvim, allowing it to be enabled and disabled for various integrations with other plugins. My idea is to utilize the strong templating capabilities of stylix, to allow the user to have this deep level of integration with the theme selected with stylix.

In practice, this would be similar to allowing the user to define their own base16 scheme, but hopefully would require less manual theming/highlight application by the user. The theme could just access config.stylix.colors.withHashtag or whatever variables the plugins need, and then you would be able to have a nice, consistent looking theme that can be generated dynamically every time you use stylix.

4lxs commented 4 months ago

it seems to be an option provided with stylix. see this

what additional features would you want?

MattSturgeon commented 4 months ago

Looks like they have support for most nixvim installation methods, so I think this can be closed as out of our scope. See: https://github.com/danth/stylix/tree/master/modules/nixvim and their docs.

I can't see anything obvious referring to a standalone nixvim build, nor can I imagine how that ought to work.\ I guess stylix would have to provide read-only access to a nixvim config attrset, that you'd then pass to standalone-nixvim's <derivation>.nixvimExtend function.

Feel free to re-open this and/or continue commenting if you think there's something that should be done on our end.