mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-21 11:14:40 +02:00
* feat: add melange colorscheme support * fix: colorschemes typo Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> * refactor: omit redundant tests Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> --------- Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
25 lines
541 B
Nix
25 lines
541 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (lib) mkEnableOption mkDefault mkIf;
|
|
inherit (import ../helpers.nix {inherit lib;}) mkPackageOption;
|
|
cfg = config.colorschemes.melange;
|
|
in {
|
|
options = {
|
|
colorschemes.melange = {
|
|
enable = mkEnableOption "Melange colorscheme";
|
|
package = mkPackageOption "melange.nvim" pkgs.vimPlugins.melange-nvim;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
colorscheme = "melange";
|
|
extraPlugins = [cfg.package];
|
|
options = {
|
|
termguicolors = mkDefault true;
|
|
};
|
|
};
|
|
}
|