mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 01:04:34 +02:00
colorschemes/gruvbox-material: init
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
Signed-off-by: Jakob Beckmann <f4z3r-github@pm.me>
This commit is contained in:
parent
4cbb93da8f
commit
6a15c2ffc5
3 changed files with 109 additions and 0 deletions
42
plugins/colorschemes/gruvbox-material.nix
Normal file
42
plugins/colorschemes/gruvbox-material.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "gruvbox-material";
|
||||
isColorscheme = true;
|
||||
packPathName = "gruvbox-material.nvim";
|
||||
package = "gruvbox-material-nvim";
|
||||
|
||||
maintainers = [ lib.maintainers.f4z3r ];
|
||||
|
||||
settingsExample = {
|
||||
italics = true;
|
||||
contrast = "medium";
|
||||
comments = {
|
||||
italics = true;
|
||||
};
|
||||
background = {
|
||||
transparent = false;
|
||||
};
|
||||
float = {
|
||||
force_background = false;
|
||||
};
|
||||
signs = {
|
||||
highlight = true;
|
||||
};
|
||||
customize = lib.nixvim.nestedLiteralLua ''
|
||||
function(g, o)
|
||||
local colors = require("gruvbox-material.colors").get(vim.o.background, "medium")
|
||||
if g == "CursorLineNr" then
|
||||
o.link = nil -- wipe a potential link, which would take precedence over other
|
||||
-- attributes
|
||||
o.fg = colors.orange -- or use any color in "#rrggbb" hex format
|
||||
o.bold = true
|
||||
end
|
||||
return o
|
||||
end
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -12,6 +12,7 @@
|
|||
./colorschemes/everforest.nix
|
||||
./colorschemes/github-theme.nix
|
||||
./colorschemes/gruvbox.nix
|
||||
./colorschemes/gruvbox-material.nix
|
||||
./colorschemes/kanagawa.nix
|
||||
./colorschemes/kanagawa-paper.nix
|
||||
./colorschemes/melange.nix
|
||||
|
|
66
tests/test-sources/plugins/colorschemes/gruvbox-material.nix
Normal file
66
tests/test-sources/plugins/colorschemes/gruvbox-material.nix
Normal file
|
@ -0,0 +1,66 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
empty = {
|
||||
colorschemes.gruvbox-material.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
colorschemes.gruvbox-material = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
italics = true;
|
||||
contrast = "medium";
|
||||
comments = {
|
||||
italics = true;
|
||||
};
|
||||
background = {
|
||||
transparent = false;
|
||||
};
|
||||
float = {
|
||||
force_background = false;
|
||||
background_color = null;
|
||||
};
|
||||
signs = {
|
||||
highlight = true;
|
||||
};
|
||||
customize = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
colorschemes.gruvbox-material = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
italics = true;
|
||||
contrast = "medium";
|
||||
comments = {
|
||||
italics = true;
|
||||
};
|
||||
background = {
|
||||
transparent = false;
|
||||
};
|
||||
float = {
|
||||
force_background = false;
|
||||
};
|
||||
signs = {
|
||||
highlight = true;
|
||||
};
|
||||
customize = lib.nixvim.mkRaw ''
|
||||
function(g, o)
|
||||
local colors = require("gruvbox-material.colors").get(vim.o.background, "medium")
|
||||
if g == "CursorLineNr" then
|
||||
o.link = nil -- wipe a potential link, which would take precedence over other
|
||||
-- attributes
|
||||
o.fg = colors.orange -- or use any color in "#rrggbb" hex format
|
||||
o.bold = true
|
||||
end
|
||||
return o
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue