mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-30 12:24:28 +02:00
18 lines
371 B
Nix
18 lines
371 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 = {
|
||
|
extraConfigVim = optionalString (config.colorscheme != "" && config.colorscheme != null) ''
|
||
|
colorscheme ${config.colorscheme}
|
||
|
'';
|
||
|
};
|
||
|
}
|