diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-08-05 09:40:16 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-08-05 09:40:16 +0200 |
| commit | bcabbcad7424b40ff178c3a27917c504bf1923e0 (patch) | |
| tree | 9110adac389f7e7b280e735cb342b5f04d134b0e /windows/bin/nvim-update.cmd | |
| parent | d9a854e3d2b81f857cf050217c77168ef9ec750f (diff) | |
| download | dotfiles-bcabbcad7424b40ff178c3a27917c504bf1923e0.tar.gz dotfiles-bcabbcad7424b40ff178c3a27917c504bf1923e0.tar.bz2 dotfiles-bcabbcad7424b40ff178c3a27917c504bf1923e0.zip | |
nvim-update.cmd: Prüfe, ob cl.exe verfügbar ist.
Diffstat (limited to 'windows/bin/nvim-update.cmd')
| -rw-r--r-- | windows/bin/nvim-update.cmd | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/windows/bin/nvim-update.cmd b/windows/bin/nvim-update.cmd index bcf8b65..bf9aff8 100644 --- a/windows/bin/nvim-update.cmd +++ b/windows/bin/nvim-update.cmd | |||
| @@ -1,2 +1,12 @@ | |||
| 1 | @echo off | 1 | @echo off |
| 2 | |||
| 3 | rem Prüft vor dem Parser-Update, ob ein C-Compiler (cl.exe, MSVC) im PATH | ||
| 4 | rem gefunden wird - nvim-treesitter braucht ihn zum Kompilieren der Parser. | ||
| 5 | |||
| 6 | where /q cl.exe | ||
| 7 | if errorlevel 1 ( | ||
| 8 | echo [nvim-update] cl.exe nicht gefunden - Neovim aus einer "Developer PowerShell for VS" starten. 1>&2 | ||
| 9 | exit /b 1 | ||
| 10 | ) | ||
| 11 | |||
| 2 | nvim --headless -c "lua require[[lazy]].sync({ wait = true })" -c "UpdateParsers" -c "qa" | 12 | nvim --headless -c "lua require[[lazy]].sync({ wait = true })" -c "UpdateParsers" -c "qa" |
