2024-08-31 21:38:18 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-09-07 15:44:59 -04:00
|
|
|
echo "Ensuring system dependencies are present ..."
|
|
|
|
sudo emerge -av --noreplace \
|
2024-08-31 21:38:18 -04:00
|
|
|
x11-misc/xclip \
|
2024-09-07 15:07:30 -04:00
|
|
|
sys-apps/ripgrep \
|
2024-09-07 15:44:59 -04:00
|
|
|
net-libs/nodejs \
|
2024-10-20 20:55:35 -04:00
|
|
|
sys-devel/clang \
|
|
|
|
dev-lang/go
|
2024-09-07 15:44:59 -04:00
|
|
|
|
|
|
|
# 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.
|
2024-11-10 14:29:56 -05:00
|
|
|
echo "Installing rust dependencies"
|
2024-09-07 15:44:59 -04:00
|
|
|
if ! command -v rustup &> /dev/null; then
|
2024-11-10 14:29:56 -05:00
|
|
|
echo "Not installing rust-analyzer, rustup not found. Run 'install_rustup' first!"
|
2024-09-07 15:44:59 -04:00
|
|
|
else
|
|
|
|
rustup component add rust-src rust-analyzer
|
|
|
|
fi
|
2024-08-31 21:38:18 -04:00
|
|
|
|
2024-11-10 14:29:56 -05:00
|
|
|
echo "Installing customized llm-ls binary"
|
2024-11-10 14:27:27 -05:00
|
|
|
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
|