mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
16 lines
367 B
Nix
16 lines
367 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options = {
|
|
colorscheme = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.str;
|
|
description = "The name of the colorscheme to use";
|
|
default = null;
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf (config.colorscheme != "" && config.colorscheme != null) {
|
|
extraConfigVim = ''
|
|
colorscheme ${config.colorscheme}
|
|
'';
|
|
};
|
|
}
|