diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-07-08 14:45:53 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-07-08 14:45:53 +0200 |
| commit | 0ca0af2deea5976671fc6356e612c5bdbb40f256 (patch) | |
| tree | ded4ff2263e5c1fa13c5ed87db2cc76f02743550 | |
| parent | 7e7f48ed9a11936128c5961eaaedfcdbcf73247e (diff) | |
| download | dotfiles-0ca0af2deea5976671fc6356e612c5bdbb40f256.tar.gz dotfiles-0ca0af2deea5976671fc6356e612c5bdbb40f256.tar.bz2 dotfiles-0ca0af2deea5976671fc6356e612c5bdbb40f256.zip | |
neovim: alle NPM Pakete werden von einem Skript installiert
| -rwxr-xr-x | bootstrap-nvim-node.sh | 29 | ||||
| -rwxr-xr-x | bootstrap-nvim.sh | 1 |
2 files changed, 1 insertions, 29 deletions
diff --git a/bootstrap-nvim-node.sh b/bootstrap-nvim-node.sh deleted file mode 100755 index ef51ea9..0000000 --- a/bootstrap-nvim-node.sh +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | set -eu | ||
| 3 | |||
| 4 | # node vorhanden? | ||
| 5 | command -v node >/dev/null 2>&1 || { | ||
| 6 | echo "ERROR: node not found" | ||
| 7 | exit 1 | ||
| 8 | } | ||
| 9 | |||
| 10 | # npm vorhanden? | ||
| 11 | command -v npm >/dev/null 2>&1 || { | ||
| 12 | echo "ERROR: npm not found" | ||
| 13 | exit 1 | ||
| 14 | } | ||
| 15 | |||
| 16 | # neovim provider installieren (idempotent) | ||
| 17 | if ! command -v neovim-node-host >/dev/null 2>&1; then | ||
| 18 | echo "Installing Neovim Node provider (npm neovim)" | ||
| 19 | npm install -g neovim | ||
| 20 | fi | ||
| 21 | |||
| 22 | # Verifikation | ||
| 23 | command -v neovim-node-host >/dev/null 2>&1 || { | ||
| 24 | echo "ERROR: neovim-node-host not found in PATH" | ||
| 25 | exit 1 | ||
| 26 | } | ||
| 27 | |||
| 28 | echo "Neovim Node provider ready:" | ||
| 29 | neovim-node-host --version 2>/dev/null || true | ||
diff --git a/bootstrap-nvim.sh b/bootstrap-nvim.sh index dd39376..e004954 100755 --- a/bootstrap-nvim.sh +++ b/bootstrap-nvim.sh | |||
| @@ -125,6 +125,7 @@ esac | |||
| 125 | 125 | ||
| 126 | # === Language Server === | 126 | # === Language Server === |
| 127 | 127 | ||
| 128 | install_npm neovim-node-host neovim | ||
| 128 | install_npm basedpyright-langserver basedpyright | 129 | install_npm basedpyright-langserver basedpyright |
| 129 | install_npm bash-language-server bash-language-server | 130 | install_npm bash-language-server bash-language-server |
| 130 | 131 | ||
