diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-07-23 07:42:59 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-07-23 07:42:59 +0200 |
| commit | 1b2066ee60e9fc629941db716d8a7ac6d81dbca6 (patch) | |
| tree | 7a36669eb047d70f632d85da7d8c8016fc656b07 /bootstrap/neovim.sh | |
| parent | 660a005fa15e99c4aa1cef3d844a488cfde65010 (diff) | |
| download | dotfiles-1b2066ee60e9fc629941db716d8a7ac6d81dbca6.tar.gz dotfiles-1b2066ee60e9fc629941db716d8a7ac6d81dbca6.tar.bz2 dotfiles-1b2066ee60e9fc629941db716d8a7ac6d81dbca6.zip | |
neovim: Python- und Node-Provider deaktiviert, bootstrap bereinigt
Alle Plugins sind reines Lua, ein Provider wird nicht benoetigt.
g.python3_host_prog entfernt (zeigte auf unix-spezifischen venv-Pfad),
stattdessen g.loaded_python3_provider = 0 und g.loaded_node_provider = 0.
bootstrap/neovim.sh: setup_python_provider() (venv + pynvim) und
install_npm neovim-node-host entfernt, python3 als Systemvoraussetzung
gestrichen. node bleibt (wird fuer npm-Installationen benoetigt).
Diffstat (limited to 'bootstrap/neovim.sh')
| -rwxr-xr-x | bootstrap/neovim.sh | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/bootstrap/neovim.sh b/bootstrap/neovim.sh index d601dbd..6ffefaf 100755 --- a/bootstrap/neovim.sh +++ b/bootstrap/neovim.sh | |||
| @@ -78,51 +78,10 @@ install_npm() { | |||
| 78 | npm install -g "$package" | 78 | npm install -g "$package" |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | install_pip() { | ||
| 82 | python="$1" | ||
| 83 | package="$2" | ||
| 84 | |||
| 85 | if "$python" -c "import $package" >/dev/null 2>&1; then | ||
| 86 | printf "✓ %-32s vorhanden\n" "$package" | ||
| 87 | return | ||
| 88 | fi | ||
| 89 | |||
| 90 | printf "→ Installiere Python-Paket %s\n" "$package" | ||
| 91 | env \ | ||
| 92 | -u C_INCLUDE_PATH \ | ||
| 93 | -u CPLUS_INCLUDE_PATH \ | ||
| 94 | -u LIBRARY_PATH \ | ||
| 95 | "$python" -m pip install --no-cache-dir "$package" | ||
| 96 | } | ||
| 97 | |||
| 98 | setup_python_provider() { | ||
| 99 | VENV="$HOME/.local/venv/nvim" | ||
| 100 | PYTHON="${PYTHON:-python3}" | ||
| 101 | |||
| 102 | if ! have "$PYTHON"; then | ||
| 103 | die "Python wurde nicht gefunden." | ||
| 104 | fi | ||
| 105 | |||
| 106 | if [ ! -x "$VENV/bin/python" ]; then | ||
| 107 | printf "→ Erzeuge Python-Venv %s\n" "$VENV" | ||
| 108 | |||
| 109 | mkdir -p "$(dirname "$VENV")" | ||
| 110 | "$PYTHON" -m venv "$VENV" | ||
| 111 | fi | ||
| 112 | |||
| 113 | install_pip "$VENV/bin/python" pynvim | ||
| 114 | } | ||
| 115 | |||
| 116 | install_prerequisites() { | 81 | install_prerequisites() { |
| 117 | install_pkg curl curl | 82 | install_pkg curl curl |
| 118 | install_pkg git git | 83 | install_pkg git git |
| 119 | install_pkg node node | 84 | install_pkg node node |
| 120 | install_pkg python3 python | ||
| 121 | } | ||
| 122 | |||
| 123 | install_providers() { | ||
| 124 | install_npm neovim-node-host neovim | ||
| 125 | setup_python_provider | ||
| 126 | } | 85 | } |
| 127 | 86 | ||
| 128 | install_formatters() { | 87 | install_formatters() { |
| @@ -187,7 +146,6 @@ main() { | |||
| 187 | setup_homebrew_env | 146 | setup_homebrew_env |
| 188 | 147 | ||
| 189 | install_prerequisites | 148 | install_prerequisites |
| 190 | install_providers | ||
| 191 | install_formatters | 149 | install_formatters |
| 192 | install_tools | 150 | install_tools |
| 193 | install_lsp | 151 | install_lsp |
