From f228904ed05bea4e89c54175abfc213eeb7ff225 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 13 May 2024 15:38:28 +0000 Subject: [PATCH] Fix 'nvim-test-runner' reproducibility For some reason, it looks like my personal configuration is interfering with the tests despite `--noplug -u minimal_init.lua`... Rather than investigate what _exactly_ is going on, let's merge this work-around for now. --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index b78215d..a8d4f56 100644 --- a/flake.nix +++ b/flake.nix @@ -61,6 +61,10 @@ export NVIM_TREESITTER_TEXTOBJECTS='${pkgs.vimPlugins.nvim-treesitter-textobjects}' export NVIM_TREESITTER_PARSER='${pkgs.vimPlugins.nvim-treesitter.grammarToPlugin self.packages.${system}.tree-sitter-bp}' + # FIXME: not sure why, but I get different behaviour when left untouched + XDG_CONFIG_HOME=$(mktemp -d) + export XDG_CONFIG_HOME + nvim --headless --noplugin -u ${scripts/minimal_init.lua} \ -c "PlenaryBustedDirectory test/ { minimal_init = '${./scripts/minimal_init.lua}' }" '';