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.
This commit is contained in:
Bruno BELANYI 2024-05-13 15:38:28 +00:00
parent 5cbdf5e3ac
commit f228904ed0

View file

@ -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}' }"
'';