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:
parent
e7140f963e
commit
43c6f7293e
1 changed files with 12 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, ... }:
|
||||
{ lib, config, ... }:
|
||||
lib.nixvim.plugins.mkVimPlugin {
|
||||
name = "gruvbox-material";
|
||||
isColorscheme = true;
|
||||
|
|
@ -19,4 +19,15 @@ lib.nixvim.plugins.mkVimPlugin {
|
|||
};
|
||||
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'.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue