nvf/modules/plugins/mini/hues/hues.nix

34 lines
752 B
Nix
Raw Normal View History

2025-01-17 19:32:10 +00:00
{
config,
lib,
...
}: let
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.strings) hasPrefix;
inherit (lib.nvim.types) mkPluginSetupOption;
inherit (lib.nvim.types) hexColor;
in {
options.vim.mini.hues = {
enable = mkEnableOption "mini.hues";
setupOpts = mkPluginSetupOption "mini.hues" {
background = mkOption {
description = "The background color to use";
type = hexColor;
apply = v:
if hasPrefix "#" v
then v
else "#${v}";
};
foreground = mkOption {
description = "The foreground color to use";
type = hexColor;
apply = v:
if hasPrefix "#" v
then v
else "#${v}";
};
};
};
}