aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-07-23 07:42:59 +0200
committerThomas Schmucker <ts@its1.de>2026-07-23 11:31:33 +0200
commit2d6a69a0287559e24a031cc8f3b44db3810bb6a1 (patch)
treeb9324497f01ebd475d4c4b2f4e317457a21c66d7 /bootstrap
parent43d6c49cffecd86e4db0df4aea66d6a702fe76c7 (diff)
downloaddotfiles-2d6a69a0287559e24a031cc8f3b44db3810bb6a1.tar.gz
dotfiles-2d6a69a0287559e24a031cc8f3b44db3810bb6a1.tar.bz2
dotfiles-2d6a69a0287559e24a031cc8f3b44db3810bb6a1.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')
-rwxr-xr-xbootstrap/neovim.sh42
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
81install_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
98setup_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
116install_prerequisites() { 81install_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
123install_providers() {
124 install_npm neovim-node-host neovim
125 setup_python_provider
126} 85}
127 86
128install_formatters() { 87install_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