Skip to content

Commit 6f9f988

Browse files
author
David Heinemeier Hansson
committed
Remove lazyvim extra configuration too
Until we can restore them on install
1 parent 8967108 commit 6f9f988

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

uninstall/dev-language.sh

-16
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,6 @@ else
66
languages=$(gum choose "${AVAILABLE_LANGUAGES[@]}" --no-limit --height 10 --header "Select programming languages to uninstall")
77
fi
88

9-
disable_lazyvim_extras() {
10-
local config_file="$HOME/.config/nvim/lazyvim.json"
11-
local extras=("$@")
12-
13-
local extras_json
14-
extras_json=$(printf '"%s",' "${extras[@]}")
15-
extras_json="[${extras_json%,}]"
16-
17-
# This is cheating to mimic an in-place editing of files (without a tmp file)...
18-
{ rm "$config_file" && jq --argjson extras "$extras_json" '.extras |= (. - $extras)' >"$config_file"; } <"$config_file"
19-
}
20-
219
if [[ -n $languages ]]; then
2210
for language in $languages; do
2311
case $language in
@@ -27,17 +15,14 @@ if [[ -n $languages ]]; then
2715
;;
2816
Node.js)
2917
mise uninstall node@lts
30-
disable_lazyvim_extras "lazyvim.plugins.extras.lang.typescript"
3118
;;
3219
Go)
3320
mise uninstall go@latest
34-
disable_lazyvim_extras "lazyvim.plugins.extras.lang.go"
3521
;;
3622
PHP)
3723
sudo apt -y purge php8.4 php8.4-{curl,apcu,intl,mbstring,opcache,pgsql,mysql,sqlite3,redis,xml,zip}
3824
sudo add-apt-repository -y --remove ppa:ondrej/php
3925
sudo rm /usr/local/bin/composer
40-
disable_lazyvim_extras "lazyvim.plugins.extras.lang.php"
4126
;;
4227
Python)
4328
mise uninstall python@latest
@@ -48,7 +33,6 @@ if [[ -n $languages ]]; then
4833
;;
4934
Rust)
5035
rustup self uninstall -y
51-
disable_lazyvim_extras "lazyvim.plugins.extras.lang.rust"
5236
;;
5337
Java)
5438
mise uninnstall java@latest

0 commit comments

Comments
 (0)