mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
utility/images/image-nvim: add assertion for ueberzug
backend on darwin
This commit is contained in:
parent
a32f13b636
commit
38ca1f98a2
2 changed files with 9 additions and 1 deletions
|
@ -180,7 +180,7 @@ inputs: let
|
|||
};
|
||||
|
||||
images = {
|
||||
image-nvim.enable = true;
|
||||
image-nvim.enable = false;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
|
@ -10,6 +11,13 @@
|
|||
cfg = config.vim.utility.images.image-nvim;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion = pkgs.stdenv.isDarwin && cfg.setupOpts.backend != "ueberzug";
|
||||
message = "image-nvim: ueberzug backend is broken on ${pkgs.stdenv.hostPlatform.system}. if you are using kitty, please set `vim.utility.images.image-nvim.setupOpts.backend` option to `kitty` in your configuration, otherwise disable this module.";
|
||||
}
|
||||
];
|
||||
|
||||
vim = {
|
||||
startPlugins = [
|
||||
"image-nvim"
|
||||
|
|
Loading…
Reference in a new issue