nix-community.nixvim/plugins/colorschemes/oxocarbon.nix
Felix Hass 3ef05b4f13
colorschemes/oxocarbon: init (#473)
* plugins/colorschemes/oxocarbon: init

* Update plugins/colorschemes/oxocarbon.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* plugins/colorscheme/oxocarbon: Made termguicolors mkDefault

* plugins/colorschems/oxocarbon: test

* plugins/colorschemes/oxocarbon: fixed incorrect test

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* plugins/colorschemes/oxocarbon: fixed test formatting

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* plugins/colorschemes/oxocarbon: fixed incorrect syntax

---------

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2023-07-07 08:03:34 +02:00

27 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;
};
};
}