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"