#!/usr/bin/env bash
#
# Update development environment

set -e

echo "Updating rust nightly..."
rustup update nightly

updatealacritty
updatenvim
updatevimplugins

echo "Installing gopls..."
cd "$HOME"
go install golang.org/x/tools/gopls@latest
go install honnef.co/go/tools/cmd/staticcheck@latest

# TODO: run installdotfiles?

echo "Done"