aboutsummaryrefslogtreecommitdiff
path: root/bootstrap-nvim-node.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap-nvim-node.sh')
-rwxr-xr-xbootstrap-nvim-node.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/bootstrap-nvim-node.sh b/bootstrap-nvim-node.sh
new file mode 100755
index 0000000..e072e14
--- /dev/null
+++ b/bootstrap-nvim-node.sh
@@ -0,0 +1,30 @@
1#!/bin/sh
2set -eu
3
4# node vorhanden?
5command -v node >/dev/null 2>&1 || {
6 echo "ERROR: node not found"
7 exit 1
8}
9
10# npm vorhanden?
11command -v npm >/dev/null 2>&1 || {
12 echo "ERROR: npm not found"
13 exit 1
14}
15
16# neovim provider installieren (idempotent)
17if ! command -v neovim-node-host >/dev/null 2>&1; then
18 echo "Installing Neovim Node provider (npm neovim)"
19 npm install -g neovim
20fi
21
22# Verifikation
23command -v neovim-node-host >/dev/null 2>&1 || {
24 echo "ERROR: neovim-node-host not found in PATH"
25 exit 1
26}
27
28echo "Neovim Node provider ready:"
29neovim-node-host --version 2>/dev/null || true
30