aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/nvim.sh
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-07-09 01:00:34 +0200
committerGitHub <noreply@github.com>2022-07-09 01:00:34 +0200
commitd132a7a673d43b2da73f75e09fbe7fb49c431514 (patch)
tree4b3b10d68ee149382d71b6977664bcb9d6dd2d20 /scripts/nvim.sh
parentfeat: add black (#34) (diff)
downloadmason-d132a7a673d43b2da73f75e09fbe7fb49c431514.tar
mason-d132a7a673d43b2da73f75e09fbe7fb49c431514.tar.gz
mason-d132a7a673d43b2da73f75e09fbe7fb49c431514.tar.bz2
mason-d132a7a673d43b2da73f75e09fbe7fb49c431514.tar.lz
mason-d132a7a673d43b2da73f75e09fbe7fb49c431514.tar.xz
mason-d132a7a673d43b2da73f75e09fbe7fb49c431514.tar.zst
mason-d132a7a673d43b2da73f75e09fbe7fb49c431514.zip
chore(workflow): modularize scripts and remove mason-lspconfig from CI checks (#36)
Diffstat (limited to 'scripts/nvim.sh')
-rwxr-xr-xscripts/nvim.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/nvim.sh b/scripts/nvim.sh
new file mode 100755
index 00000000..e2ac55cd
--- /dev/null
+++ b/scripts/nvim.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+set -exuo pipefail
+
+declare -x DEPENDENCIES="${PWD}/dependencies"
+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