diff --git a/plugins/colorschemes/oxocarbon.nix b/plugins/colorschemes/oxocarbon.nix new file mode 100644 index 00000000..21ee948c --- /dev/null +++ b/plugins/colorschemes/oxocarbon.nix @@ -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; + }; + }; +} diff --git a/plugins/default.nix b/plugins/default.nix index bc7097d3..4c9adbd7 100644 --- a/plugins/default.nix +++ b/plugins/default.nix @@ -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 diff --git a/tests/test-sources/plugins/colorschemes/oxocarbon.nix b/tests/test-sources/plugins/colorschemes/oxocarbon.nix new file mode 100644 index 00000000..259754c5 --- /dev/null +++ b/tests/test-sources/plugins/colorschemes/oxocarbon.nix @@ -0,0 +1,5 @@ +{ + empty = { + colorschemes.oxocarbon.enable = true; + }; +}