aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-07-09 13:05:38 +0200
committerGitHub <noreply@github.com>2022-07-09 11:05:38 +0000
commitfd572ef6cfdc804658f1d00b81dc06724af28dae (patch)
tree4fe4f3a586bcaa4796ce4e5d2ae14e90dca89b4a /scripts
parentchore(workflow): add bot-automation.yml (#38) (diff)
downloadmason-fd572ef6cfdc804658f1d00b81dc06724af28dae.tar
mason-fd572ef6cfdc804658f1d00b81dc06724af28dae.tar.gz
mason-fd572ef6cfdc804658f1d00b81dc06724af28dae.tar.bz2
mason-fd572ef6cfdc804658f1d00b81dc06724af28dae.tar.lz
mason-fd572ef6cfdc804658f1d00b81dc06724af28dae.tar.xz
mason-fd572ef6cfdc804658f1d00b81dc06724af28dae.tar.zst
mason-fd572ef6cfdc804658f1d00b81dc06724af28dae.zip
fix(scripts): set packpath instead of rtp for dependencies (#42)
* fix(scripts): set packpath instead of rtp for dependencies * chore: remove bot-automation.yml This will not function as I had expected as secrets are not available in PRs coming from forks, which defeats the whole purpose. Will have to build a standalone webhook service in a closed environment instead.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/nvim.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/nvim.sh b/scripts/nvim.sh
index e2ac55cd..cbfd4c0e 100755
--- a/scripts/nvim.sh
+++ b/scripts/nvim.sh
@@ -7,5 +7,8 @@ declare -x MASON_DIR="$PWD"
declare -x MASON_SCRIPT_DIR="${PWD}/scripts"
nvim -u NONE -E -R --headless \
- --cmd "set rtp+=${MASON_SCRIPT_DIR},${MASON_DIR},${DEPENDENCIES}" \
- +"luafile $1" +q
+ --cmd "set rtp+=${MASON_SCRIPT_DIR},${MASON_DIR}" \
+ --cmd "set packpath+=${DEPENDENCIES}" \
+ --cmd "packloadall" \
+ --cmd "luafile $1" \
+ --cmd "q"