mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 09:14:31 +02:00
25 lines
494 B
Nix
25 lines
494 B
Nix
{
|
|
lib,
|
|
helpers,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (lib) mkEnableOption mkDefault mkIf;
|
|
cfg = config.colorschemes.melange;
|
|
in {
|
|
options = {
|
|
colorschemes.melange = {
|
|
enable = mkEnableOption "Melange colorscheme";
|
|
package = helpers.mkPackageOption "melange.nvim" pkgs.vimPlugins.melange-nvim;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
colorscheme = "melange";
|
|
extraPlugins = [cfg.package];
|
|
options = {
|
|
termguicolors = mkDefault true;
|
|
};
|
|
};
|
|
}
|