mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 13:47:36 +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
|
||||
if want_lang rust ;then
|
||||
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
|
||||
|
||||
# Go
|
||||
|
Loading…
Reference in New Issue
Block a user