mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
20 lines
367 B
Nix
20 lines
367 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}
|
|
'';
|
|
};
|
|
}
|