diff --git a/plugins/colorschemes/gruvbox-material.nix b/plugins/colorschemes/gruvbox-material.nix new file mode 100644 index 0000000000..b304c36c6d --- /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 1fa63ac72f..391478bb3d 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/plugins/deprecation.nix b/plugins/deprecation.nix index 002926f070..d77974fec1 100644 --- a/plugins/deprecation.nix +++ b/plugins/deprecation.nix @@ -23,12 +23,6 @@ let It is recommended to use `plugins.pckr` or `plugins.lazy` instead. ''; }; - renamed.colorschemes = { - # Added 2025-08-06 - # NOTE: The old name is not in a stable version and was only in unstable for a few weeks, - # so we can remove this alias more quickly than usual. - gruvbox-material = "gruvbox-material-nvim"; - }; renamed.plugins = { # Added 2024-09-17 surround = "vim-surround"; 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 0000000000..bdd725b59d --- /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; + }; + }; + }; +}