1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00

plugins/colorschemes: add warning to gruvbox-material

Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
saygo-png 2025-09-11 03:15:01 +02:00 committed by Gaétan Lepage
parent e7140f963e
commit 43c6f7293e

View file

@ -1,4 +1,4 @@
{ lib, ... }: { lib, config, ... }:
lib.nixvim.plugins.mkVimPlugin { lib.nixvim.plugins.mkVimPlugin {
name = "gruvbox-material"; name = "gruvbox-material";
isColorscheme = true; isColorscheme = true;
@ -19,4 +19,15 @@ lib.nixvim.plugins.mkVimPlugin {
}; };
show_eob = 0; show_eob = 0;
}; };
extraConfig = cfg: {
warnings = lib.nixvim.mkWarnings "colorschemes.gruvbox-material" {
when = (cfg.settings.better_performance or 0 == 1) && !config.impureRtp;
message = ''
You have enabled 'better_performance', but the top-level option 'impureRtp' is false.
The performance option generates syntax files at runtime that cannot be accessed with impureRtp disabled.
This breaks the plugin. Either disable 'better_performance' or enable 'impureRtp'.
'';
};
};
} }