From 1a7905eced82dbfb21e9d7d1a8ee4fccdf608637 Mon Sep 17 00:00:00 2001 From: saygo-png Date: Thu, 7 Aug 2025 18:54:30 +0200 Subject: [PATCH] colorschemes/gruvbox-material: init Signed-off-by: saygo-png --- plugins/colorschemes/gruvbox-material.nix | 22 ++++++++ plugins/default.nix | 1 + .../plugins/colorschemes/gruvbox-material.nix | 56 +++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 plugins/colorschemes/gruvbox-material.nix create mode 100644 tests/test-sources/plugins/colorschemes/gruvbox-material.nix diff --git a/plugins/colorschemes/gruvbox-material.nix b/plugins/colorschemes/gruvbox-material.nix new file mode 100644 index 00000000..b304c36c --- /dev/null +++ b/plugins/colorschemes/gruvbox-material.nix @@ -0,0 +1,22 @@ +{ lib, ... }: +lib.nixvim.plugins.mkVimPlugin { + name = "gruvbox-material"; + isColorscheme = true; + globalPrefix = "gruvbox_material_"; + + maintainers = [ lib.maintainers.saygo-png ]; + + settingsExample = { + foreground = "original"; + enable_bold = 1; + enable_italic = 1; + transparent_background = 2; + colors_override = { + green = [ + "#7d8618" + 142 + ]; + }; + show_eob = 0; + }; +} diff --git a/plugins/default.nix b/plugins/default.nix index 1fa63ac7..391478bb 100644 --- a/plugins/default.nix +++ b/plugins/default.nix @@ -13,6 +13,7 @@ ./colorschemes/github-theme.nix ./colorschemes/gruvbox.nix ./colorschemes/gruvbox-baby.nix + ./colorschemes/gruvbox-material.nix ./colorschemes/gruvbox-material-nvim.nix ./colorschemes/kanagawa.nix ./colorschemes/kanagawa-paper.nix diff --git a/tests/test-sources/plugins/colorschemes/gruvbox-material.nix b/tests/test-sources/plugins/colorschemes/gruvbox-material.nix new file mode 100644 index 00000000..bdd725b5 --- /dev/null +++ b/tests/test-sources/plugins/colorschemes/gruvbox-material.nix @@ -0,0 +1,56 @@ +_: { + empty = { + colorschemes.gruvbox-material.enable = true; + }; + + defaults = { + colorschemes.gruvbox-material = { + enable = true; + settings = { + background = "medium"; + foreground = "material"; + transparent_background = 0; + dim_inactive_windows = 0; + disable_italic_comment = 0; + enable_bold = 0; + enable_italic = 0; + cursor = "auto"; + visual = "grey background"; + menu_selection_background = "grey"; + sign_column_background = "none"; + spell_foreground = "none"; + ui_contrast = "low"; + show_eob = 1; + float_style = "bright"; + current_word = "grey background"; + inlay_hints_background = "none"; + statusline_style = "default"; + lightline_disable_bold = 0; + diagnostic_text_highlight = 0; + diagnostic_line_highlight = 0; + diagnostic_virtual_text = "grey"; + disable_terminal_colors = 0; + better_performance = 0; + }; + }; + }; + + example = { + colorschemes.gruvbox-material = { + enable = true; + settings = { + foreground = "original"; + enable_bold = 1; + enable_italic = 1; + transparent_background = 2; + colors_override = { + green = [ + "#7d8618" + 142 + ]; + }; + show_eob = 0; + }; + }; + }; +}