tests/plugins/utils/spectre: enable tests on Darwin

This commit is contained in:
Enno Richter 2024-08-01 12:14:21 +02:00 committed by Gaetan Lepage
parent cb398ce4ba
commit a96aa9730a

View file

@ -1,16 +1,12 @@
{ pkgs, ... }: { pkgs, ... }:
let
# Fails on darwin with: `module 'plenary.job' not found`
enable = !pkgs.stdenv.isDarwin;
in
{ {
empty = { empty = {
plugins.spectre.enable = enable; plugins.spectre.enable = true;
}; };
package-options-manual = { package-options-manual = {
plugins.spectre = { plugins.spectre = {
inherit enable; enable = true;
findPackage = pkgs.ripgrep; findPackage = pkgs.ripgrep;
replacePackage = pkgs.gnused; replacePackage = pkgs.gnused;
@ -19,7 +15,7 @@ in
package-options-from-settings = { package-options-from-settings = {
plugins.spectre = { plugins.spectre = {
inherit enable; enable = true;
settings.default = { settings.default = {
find.cmd = "rg"; find.cmd = "rg";
@ -30,7 +26,7 @@ in
example = { example = {
plugins.spectre = { plugins.spectre = {
inherit enable; enable = true;
settings = { settings = {
live_update = true; live_update = true;
@ -87,7 +83,7 @@ in
defaults = { defaults = {
plugins.spectre = { plugins.spectre = {
inherit enable; enable = true;
settings = { settings = {
filetype = "spectre_panel"; filetype = "spectre_panel";