File tree Expand file tree Collapse file tree 3 files changed +109
-0
lines changed
tests/test-sources/plugins/colorschemes Expand file tree Collapse file tree 3 files changed +109
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 12
12
./colorschemes/everforest.nix
13
13
./colorschemes/github-theme.nix
14
14
./colorschemes/gruvbox.nix
15
+ ./colorschemes/gruvbox-material.nix
15
16
./colorschemes/kanagawa.nix
16
17
./colorschemes/kanagawa-paper.nix
17
18
./colorschemes/melange.nix
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments