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>
This commit is contained in:
Felix Hass 2023-07-07 02:03:34 -04:00 committed by GitHub
parent 16a0f6c500
commit 3ef05b4f13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{
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;
};
};
}

View file

@ -9,6 +9,7 @@
./colorschemes/nord.nix
./colorschemes/one.nix
./colorschemes/onedark.nix
./colorschemes/oxocarbon.nix
./colorschemes/poimandres.nix
./colorschemes/tokyonight.nix
./colorschemes/catppuccin.nix

View file

@ -0,0 +1,5 @@
{
empty = {
colorschemes.oxocarbon.enable = true;
};
}