nixos-config/tests/lib/nixvim.nix

24 lines
470 B
Nix
Raw Normal View History

2024-03-08 08:39:13 +00:00
{ pkgs, lib, self }:
let
nixvimConfig = {
plugins.lightline.enable = true;
plugins.neorg.enable = true;
};
2025-01-29 04:48:19 +00:00
nixosConfig = { programs.firefox.enable = true; };
2024-03-08 08:39:13 +00:00
2025-01-29 04:48:19 +00:00
nixvimConfig' = { inherit nixosConfig; } // nixvimConfig;
in lib.runTests {
2024-03-08 08:39:13 +00:00
testNixvimIsStandalone = {
expr = self.nixvim.isStandalone nixvimConfig;
expected = true;
};
testNixvimIsStandalone2 = {
expr = self.nixvim.isStandalone nixvimConfig';
expected = false;
};
}