Skip to content

Commit 6a15c2f

Browse files
f4z3rGaetanLepage
authored andcommitted
colorschemes/gruvbox-material: init
Signed-off-by: Jakob Beckmann <[email protected]>
1 parent 4cbb93d commit 6a15c2f

File tree

3 files changed

+109
-0
lines changed

3 files changed

+109
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
lib,
3+
config,
4+
...
5+
}:
6+
lib.nixvim.plugins.mkNeovimPlugin {
7+
name = "gruvbox-material";
8+
isColorscheme = true;
9+
packPathName = "gruvbox-material.nvim";
10+
package = "gruvbox-material-nvim";
11+
12+
maintainers = [ lib.maintainers.f4z3r ];
13+
14+
settingsExample = {
15+
italics = true;
16+
contrast = "medium";
17+
comments = {
18+
italics = true;
19+
};
20+
background = {
21+
transparent = false;
22+
};
23+
float = {
24+
force_background = false;
25+
};
26+
signs = {
27+
highlight = true;
28+
};
29+
customize = lib.nixvim.nestedLiteralLua ''
30+
function(g, o)
31+
local colors = require("gruvbox-material.colors").get(vim.o.background, "medium")
32+
if g == "CursorLineNr" then
33+
o.link = nil -- wipe a potential link, which would take precedence over other
34+
-- attributes
35+
o.fg = colors.orange -- or use any color in "#rrggbb" hex format
36+
o.bold = true
37+
end
38+
return o
39+
end
40+
'';
41+
};
42+
}

plugins/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
./colorschemes/everforest.nix
1313
./colorschemes/github-theme.nix
1414
./colorschemes/gruvbox.nix
15+
./colorschemes/gruvbox-material.nix
1516
./colorschemes/kanagawa.nix
1617
./colorschemes/kanagawa-paper.nix
1718
./colorschemes/melange.nix
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{ lib, ... }:
2+
{
3+
empty = {
4+
colorschemes.gruvbox-material.enable = true;
5+
};
6+
7+
defaults = {
8+
colorschemes.gruvbox-material = {
9+
enable = true;
10+
11+
settings = {
12+
italics = true;
13+
contrast = "medium";
14+
comments = {
15+
italics = true;
16+
};
17+
background = {
18+
transparent = false;
19+
};
20+
float = {
21+
force_background = false;
22+
background_color = null;
23+
};
24+
signs = {
25+
highlight = true;
26+
};
27+
customize = null;
28+
};
29+
};
30+
};
31+
32+
example = {
33+
colorschemes.gruvbox-material = {
34+
enable = true;
35+
36+
settings = {
37+
italics = true;
38+
contrast = "medium";
39+
comments = {
40+
italics = true;
41+
};
42+
background = {
43+
transparent = false;
44+
};
45+
float = {
46+
force_background = false;
47+
};
48+
signs = {
49+
highlight = true;
50+
};
51+
customize = lib.nixvim.mkRaw ''
52+
function(g, o)
53+
local colors = require("gruvbox-material.colors").get(vim.o.background, "medium")
54+
if g == "CursorLineNr" then
55+
o.link = nil -- wipe a potential link, which would take precedence over other
56+
-- attributes
57+
o.fg = colors.orange -- or use any color in "#rrggbb" hex format
58+
o.bold = true
59+
end
60+
return o
61+
end
62+
'';
63+
};
64+
};
65+
};
66+
}

0 commit comments

Comments
 (0)