nix-community.nixvim/modules/colorscheme.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
367 B
Nix
Raw Normal View History

2024-05-05 19:39:35 +02:00
{ config, lib, ... }:
{
options = {
2024-08-30 14:37:41 -05:00
colorscheme = lib.mkOption {
type = lib.types.nullOr lib.types.str;
description = "The name of the colorscheme to use";
default = null;
};
};
2024-08-30 14:37:41 -05:00
config = lib.mkIf (config.colorscheme != "" && config.colorscheme != null) {
extraConfigVim = ''
colorscheme ${config.colorscheme}
'';
};
}