mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-01 04:44:31 +02:00
28 lines
493 B
Nix
28 lines
493 B
Nix
|
{
|
||
|
pkgs,
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
with lib; let
|
||
|
cfg = config.colorschemes.oxocarbon;
|
||
|
helpers = import ../helpers.nix {inherit lib;};
|
||
|
in {
|
||
|
options = {
|
||
|
colorschemes.oxocarbon = {
|
||
|
enable = mkEnableOption "oxocarbon";
|
||
|
|
||
|
package = helpers.mkPackageOption "oxocarbon" pkgs.vimPlugins.oxocarbon-nvim;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
colorscheme = "oxocarbon";
|
||
|
extraPlugins = [cfg.package];
|
||
|
|
||
|
options = {
|
||
|
termguicolors = mkDefault true;
|
||
|
};
|
||
|
};
|
||
|
}
|