From 38ca1f98a22cfb3067e347ebbf875ba87913635b Mon Sep 17 00:00:00 2001 From: Frothy <76622149+FrothyMarrow@users.noreply.github.com> Date: Mon, 26 Feb 2024 07:31:30 -0500 Subject: [PATCH] utility/images/image-nvim: add assertion for `ueberzug` backend on darwin --- configuration.nix | 2 +- modules/utility/images/image-nvim/config.nix | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 0be5b58..8420bbf 100644 --- a/configuration.nix +++ b/configuration.nix @@ -180,7 +180,7 @@ inputs: let }; images = { - image-nvim.enable = true; + image-nvim.enable = false; }; }; diff --git a/modules/utility/images/image-nvim/config.nix b/modules/utility/images/image-nvim/config.nix index 52666d3..49ca3e5 100644 --- a/modules/utility/images/image-nvim/config.nix +++ b/modules/utility/images/image-nvim/config.nix @@ -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"