Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Neve to be used as a Nixvim module #113

Merged
merged 2 commits into from
Oct 27, 2024
Merged

Conversation

Shyrogan
Copy link
Contributor

Context

Currently, Neve is being installed as a package by Nix. While it's easy to install, it forces users to clone the project and make their own configuration.

The goal of this PR is to provide an alternative that allows us to modify Neve's configuration without touching the flake sources directly.

Example

programs.nixvim = {
  enable = true;
  imports = [ inputs.Neve.nixvimModule ];
  # Then configure Nixvim as usual, you might have to lib.mkForce some of the settings
  colorschemes.catppuccin.enable = lib.mkForce false;
  colorschemes.nord.enable = true;
};

This keeps the default Neve configuration while allowing users to disable the catppuccin theme and enabling Nord. The code for this is fairly straightforward.

For now, we only use nixvim configuration options but you could define your own to allow for some extra configuration

@Shyrogan Shyrogan mentioned this pull request Oct 25, 2024
@redyf redyf merged commit 283507a into redyf:main Oct 27, 2024
1 of 2 checks passed
@redyf
Copy link
Owner

redyf commented Oct 27, 2024

Thank you! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants