mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-21 11:14:40 +02:00
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:
parent
16a0f6c500
commit
3ef05b4f13
3 changed files with 33 additions and 0 deletions
27
plugins/colorschemes/oxocarbon.nix
Normal file
27
plugins/colorschemes/oxocarbon.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
5
tests/test-sources/plugins/colorschemes/oxocarbon.nix
Normal file
5
tests/test-sources/plugins/colorschemes/oxocarbon.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
empty = {
|
||||
colorschemes.oxocarbon.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue