mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-20 02:35:52 +02:00
* 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>
27 lines
493 B
Nix
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;
|
|
};
|
|
};
|
|
}
|