From 9706de85788cbacf2acb91ab2edb1b2cf4a03d26 Mon Sep 17 00:00:00 2001 From: saygo-png Date: Fri, 1 Aug 2025 20:40:06 +0200 Subject: [PATCH] colorschemes/gruvbox-baby: init Signed-off-by: saygo-png --- plugins/colorschemes/gruvbox-baby.nix | 27 ++++++++++++ plugins/default.nix | 1 + .../plugins/colorschemes/gruvbox-baby.nix | 44 +++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 plugins/colorschemes/gruvbox-baby.nix create mode 100644 tests/test-sources/plugins/colorschemes/gruvbox-baby.nix diff --git a/plugins/colorschemes/gruvbox-baby.nix b/plugins/colorschemes/gruvbox-baby.nix new file mode 100644 index 00000000..d87a67b4 --- /dev/null +++ b/plugins/colorschemes/gruvbox-baby.nix @@ -0,0 +1,27 @@ +{ lib, ... }: +lib.nixvim.plugins.mkNeovimPlugin { + name = "gruvbox-baby"; + maintainers = [ lib.maintainers.saygo-png ]; + isColorscheme = true; + + # Despite being a lua plugin, it's configured via globals without a setup function. + callSetup = false; + + settingsExample = { + function_style = "NONE"; + keyword_style = "italic"; + highlights = { + Normal = { + fg = "#123123"; + bg = "NONE"; + style = "underline"; + }; + }; + telescope_theme = 1; + transparent_mode = 1; + }; + + extraConfig = cfg: { + globals = lib.nixvim.applyPrefixToAttrs "gruvbox_baby_" cfg.settings; + }; +} diff --git a/plugins/default.nix b/plugins/default.nix index f9eaf515..b00971a1 100644 --- a/plugins/default.nix +++ b/plugins/default.nix @@ -12,6 +12,7 @@ ./colorschemes/everforest.nix ./colorschemes/github-theme.nix ./colorschemes/gruvbox.nix + ./colorschemes/gruvbox-baby.nix ./colorschemes/gruvbox-material.nix ./colorschemes/kanagawa.nix ./colorschemes/kanagawa-paper.nix diff --git a/tests/test-sources/plugins/colorschemes/gruvbox-baby.nix b/tests/test-sources/plugins/colorschemes/gruvbox-baby.nix new file mode 100644 index 00000000..2b3c3dbd --- /dev/null +++ b/tests/test-sources/plugins/colorschemes/gruvbox-baby.nix @@ -0,0 +1,44 @@ +_: { + empty = { + colorschemes.gruvbox-baby.enable = true; + }; + + defaults = { + colorschemes.gruvbox-baby = { + enable = true; + + settings = { + background_color = "medium"; + transparent_mode = 0; + comment_style = "italic"; + keyword_style = "italic"; + string_style = "nocombine"; + function_style = "bold"; + variable_style = "NONE"; + highlights = { }; + color_overrides = { }; + use_original_palette = 0; + }; + }; + }; + + example = { + colorschemes.gruvbox-baby = { + enable = true; + + settings = { + function_style = "NONE"; + keyword_style = "italic"; + highlights = { + Normal = { + fg = "#123123"; + bg = "NONE"; + style = "underline"; + }; + }; + telescope_theme = 1; + transparent_mode = 1; + }; + }; + }; +}