nix-community.nixvim/modules/colorscheme.nix

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

18 lines
361 B
Nix
Raw Normal View History

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