1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-23 02:39:42 +01:00

colorschemes/gruvbox-material-nvim: migrate to by-name

This commit is contained in:
Heitor Augusto 2025-11-02 19:46:42 -03:00
parent 89c0e0a8c5
commit 842d748a74
No known key found for this signature in database
GPG key ID: 3EEC05B0024AF8A4
3 changed files with 0 additions and 1 deletions

View file

@ -1,68 +0,0 @@
{ lib, ... }:
{
empty = {
colorschemes.gruvbox-material-nvim.enable = true;
};
defaults = {
colorschemes.gruvbox-material-nvim = {
enable = true;
settings = {
italics = true;
contrast = "medium";
comments = {
italics = true;
};
background = {
transparent = false;
};
float = {
force_background = false;
background_color.__raw = "nil";
};
signs = {
force_background = false;
background_color.__raw = "nil";
};
customize.__raw = "nil";
};
};
};
example = {
colorschemes.gruvbox-material-nvim = {
enable = true;
settings = {
italics = true;
contrast = "medium";
comments = {
italics = true;
};
background = {
transparent = false;
};
float = {
force_background = false;
};
signs = {
force_background = false;
background_color.__raw = "nil";
};
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
'';
};
};
};
}