Add: ``` doInstallCheck = true; nvimRequireCheck = "toto"; ``` to your vimPluginCall.main
parent
6936329cf2
commit
08b6ad0ea5
@ -0,0 +1,21 @@ |
|||||||
|
# Setup hook for checking whether Python imports succeed |
||||||
|
echo "Sourcing neovim-require-check-hook.sh" |
||||||
|
|
||||||
|
neovimRequireCheckHook () { |
||||||
|
echo "Executing neovimRequireCheckHook" |
||||||
|
|
||||||
|
if [ -n "$nvimRequireCheck" ]; then |
||||||
|
echo "Check whether the following module can be imported: $nvimRequireCheck" |
||||||
|
|
||||||
|
# editorconfig-checker-disable |
||||||
|
export HOME="$TMPDIR" |
||||||
|
@nvimBinary@ -es -n -u NONE -i NONE --clean -V1 \ |
||||||
|
--cmd "set rtp+=$out" \ |
||||||
|
--cmd "lua require('$nvimRequireCheck')" |
||||||
|
fi |
||||||
|
} |
||||||
|
|
||||||
|
echo "Using neovimRequireCheckHook" |
||||||
|
preDistPhases+=" neovimRequireCheckHook" |
||||||
|
|
||||||
|
|
Loading…
Reference in new issue