mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-23 20:25:08 +02:00
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
42 lines
1,010 B
Nix
42 lines
1,010 B
Nix
{
|
|
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 = {
|
|
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
|
|
'';
|
|
};
|
|
}
|