2022-02-08 19:53:55 +01:00
|
|
|
lsps := "
|
|
|
|
bash-language-server
|
|
|
|
lua-language-server
|
|
|
|
rust-analyzer
|
2022-04-10 15:19:39 +02:00
|
|
|
taplo-cli
|
2022-02-08 19:53:55 +01:00
|
|
|
vscode-langservers-extracted
|
|
|
|
yaml-language-server
|
|
|
|
"
|
|
|
|
|
|
|
|
install-scripts target=(`echo $HOME` + "/.local/bin"):
|
2022-02-16 00:29:50 +01:00
|
|
|
cargo build --release --manifest-path scripts/randomwallpaper/Cargo.toml
|
2022-03-30 14:43:49 +02:00
|
|
|
cargo build --release --manifest-path scripts/playtwitch/Cargo.toml
|
2022-02-16 00:29:50 +01:00
|
|
|
cp scripts/randomwallpaper/target/release/randomwallpaper {{target}}/randomwallpaper
|
2022-03-30 14:43:49 +02:00
|
|
|
cp scripts/playtwitch/target/release/playtwitch {{target}}/playtwitch
|
2022-02-08 19:53:55 +01:00
|
|
|
|
2022-02-08 18:49:25 +01:00
|
|
|
ln -sf \
|
2022-02-16 00:29:50 +01:00
|
|
|
`pwd`/scripts/{start-joshuto,withjava} \
|
2022-02-08 18:49:25 +01:00
|
|
|
{{target}}
|
2022-02-08 19:53:55 +01:00
|
|
|
|
|
|
|
install-lsps-paru:
|
|
|
|
#!/bin/sh
|
|
|
|
paru -S --needed --noconfirm {{replace(lsps, "\n", " ")}}
|
|
|
|
|
2022-03-20 23:15:25 +01:00
|
|
|
cargo install prosemd-lsp
|
|
|
|
|
2022-02-08 19:53:55 +01:00
|
|
|
if which opam &> /dev/null; then
|
|
|
|
opam install --yes \
|
|
|
|
ocaml-lsp-server \
|
|
|
|
ocamlformat
|
|
|
|
fi
|
2022-02-08 19:57:27 +01:00
|
|
|
|
|
|
|
install-prompt:
|
|
|
|
RUSTFLAGS="-C target-cpu=native" cargo build --release \
|
|
|
|
--manifest-path prompt/Cargo.toml
|
|
|
|
strip prompt/target/release/prompt
|
|
|
|
cp prompt/target/release/prompt ~/.local/bin
|