dotfiles/nvim/install-deps.sh

28 lines
810 B
Bash
Executable file

#!/bin/bash
echo "Ensuring system dependencies are present ..."
sudo emerge -av --noreplace \
x11-misc/xclip \
sys-apps/ripgrep \
net-libs/nodejs \
sys-devel/clang \
dev-lang/go
# don't want to be root for this, rustup is typically installed by non-root users and won't be
# present for root at all.
echo "Installing rust dependencies"
if ! command -v rustup &> /dev/null; then
echo "Not installing rust-analyzer, rustup not found. Run 'install_rustup' first!"
else
rustup component add rust-src rust-analyzer
fi
echo "Installing customized llm-ls binary"
if [ ! -f "${HOME}/.cargo/bin/llm-ls" ]; then
echo "Downloading llm-ls binary"
mkdir -p "${HOME}/.cargo/bin"
curl -o "${HOME}/.cargo/bin/llm-ls" "https://blarg.ca/files/llm-ls/20241110/llm-ls"
else
echo "llm-ls binary already installed"
fi