mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 19:47:47 +00:00
Add fallback install of rust-analyzer from GitHub
This commit is contained in:
parent
c077ee967c
commit
8ed18d206d
@ -76,6 +76,12 @@ function install_language_servers() {
|
|||||||
# Rust
|
# Rust
|
||||||
if want_lang rust ;then
|
if want_lang rust ;then
|
||||||
maybe_run rustup component add rustfmt rust-analysis rust-src clippy rust-analyzer
|
maybe_run rustup component add rustfmt rust-analysis rust-src clippy rust-analyzer
|
||||||
|
if ! command_exists rustup ;then
|
||||||
|
maybe_run release-gitter --git-url "https://github.com/rust-lang/rust-analyzer" \
|
||||||
|
--map-system Windows=pc-windows-msvc --map-system Linux=unknown-linux-gnu --map-system Darwin=apple-darwin \
|
||||||
|
--exec "'F={}; gzip -d /tmp/\$F && mv /tmp/\$(echo \$F|sed s/\.gz\$//) ~/bin/rust-analyzer && chmod +x ~/bin/rust-analyzer'" \
|
||||||
|
"rust-analyzer-{arch}-{system}.gz" /tmp/
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Go
|
# Go
|
||||||
|
Loading…
Reference in New Issue
Block a user