1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00
nixvim/plugins/colorschemes/gruvbox-material-nvim.nix
saygo-png c4b27080a6 treewide: infer packPathName menial work
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-09-27 23:49:59 +00:00

39 lines
1 KiB
Nix

{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "gruvbox-material-nvim";
isColorscheme = true;
colorscheme = "gruvbox-material";
moduleName = "gruvbox-material";
package = "gruvbox-material-nvim";
maintainers = [ lib.maintainers.f4z3r ];
settingsExample = {
italics = true;
contrast = "medium";
comments = {
italics = true;
};
background = {
transparent = false;
};
float = {
force_background = false;
};
signs = {
force_background = false;
};
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
'';
};
}