mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 07:29:49 +01: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 = {
|
images = {
|
||||||
image-nvim.enable = true;
|
image-nvim.enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
|
@ -10,6 +11,13 @@
|
||||||
cfg = config.vim.utility.images.image-nvim;
|
cfg = config.vim.utility.images.image-nvim;
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
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 = {
|
vim = {
|
||||||
startPlugins = [
|
startPlugins = [
|
||||||
"image-nvim"
|
"image-nvim"
|
||||||
|
|
Loading…
Reference in a new issue