Skip to content

colorschemes/gruvbox-material: init #3608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions plugins/colorschemes/gruvbox-material.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
1 change: 1 addition & 0 deletions plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions plugins/deprecation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ let
It is recommended to use `plugins.pckr` or `plugins.lazy` instead.
'';
};
renamed.colorschemes = {
# Added 2025-08-06
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to wait a few weeks before merging, to give users chance to update and see this deprecation warning.

Some time in September should be ok?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

# 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";
Expand Down
56 changes: 56 additions & 0 deletions tests/test-sources/plugins/colorschemes/gruvbox-material.nix
Original file line number Diff line number Diff line change
@@ -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;
};
};
};
}