mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
17 lines
361 B
Nix
17 lines
361 B
Nix
{ 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}
|
|
'';
|
|
};
|
|
}
|