From f6705af88981f8b1777472d4a8779dabc907c250 Mon Sep 17 00:00:00 2001
From: har0ke <dev@ohargens.de>
Date: Thu, 5 Oct 2023 21:17:31 +0200
Subject: [PATCH] Add rust, go and javascript dev tools to extra packages

---
 install_code_extensions.sh |  4 +++-
 install_packages_arch.sh   | 12 +++++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/install_code_extensions.sh b/install_code_extensions.sh
index 2487bfb..a9d3922 100755
--- a/install_code_extensions.sh
+++ b/install_code_extensions.sh
@@ -3,14 +3,16 @@
 set -euo pipefail
 
 code \
-   --install-extension rozbo.papercolor-vscode \
    --install-extension dcasella.i3 \
+   --install-extension golang.go \
    --install-extension ms-python.python \
    --install-extension ms-python.vscode-pylance \
    --install-extension ms-vscode.cpptools \
    --install-extension ms-vscode-remote.remote-ssh \
    --install-extension ms-vscode-remote.remote-ssh-edit \
    --install-extension ms-vscode.remote-explorer \
+   --install-extension rozbo.papercolor-vscode \
+   --install-extension rust-lang.rust-analyzer \
    --install-extension timonwong.shellcheck \
    --install-extension twxs.cmake \
    --install-extension voidei.vscode-vimrc
diff --git a/install_packages_arch.sh b/install_packages_arch.sh
index e25e0e6..98c075d 100755
--- a/install_packages_arch.sh
+++ b/install_packages_arch.sh
@@ -47,6 +47,14 @@ declare -ar pkgs_tools_dev=(
     ninja
 )
 
+declare -ar pkgs_tools_dev_extra=(
+    cargo
+    go
+    nodejs
+    npm
+    rust
+)
+
 declare -ar pkgs_i3_environment=(
     acpilight
     dmenu
@@ -123,7 +131,9 @@ fi
 if [ "${DEV}" -eq 1 ]; then
     add_pkg_list pkgs_tools_dev
 fi
-
+if [ "${DEV}" -eq 1 ] && [ "${EXTRA}" -eq 1 ]; then
+    add_pkg_list pkgs_tools_dev_extra
+fi
 if [ "${DEV}" -eq 1 ] && [ "${WORKSTATION}" -eq 1 ]; then
     add_pkg_list pkgs_apps_dev
 fi