aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/rust_analyzer
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-07-06 19:41:43 +0200
committerWilliam Boman <william@redwill.se>2022-07-07 00:39:59 +0200
commit5f634e0c37e723fc0c33e06b4fd5c2180178db40 (patch)
treefa4f09363adefa8259e23e4d1ea036db628b1243 /lua/nvim-lsp-installer/servers/rust_analyzer
parentfeat(health): use stderr for java version, also check for JAVA_HOME (#765) (diff)
downloadmason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar
mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.gz
mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.bz2
mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.lz
mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.xz
mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.zst
mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.zip
mason.nvim
Diffstat (limited to 'lua/nvim-lsp-installer/servers/rust_analyzer')
-rw-r--r--lua/nvim-lsp-installer/servers/rust_analyzer/init.lua65
1 files changed, 0 insertions, 65 deletions
diff --git a/lua/nvim-lsp-installer/servers/rust_analyzer/init.lua b/lua/nvim-lsp-installer/servers/rust_analyzer/init.lua
deleted file mode 100644
index c3d228f4..00000000
--- a/lua/nvim-lsp-installer/servers/rust_analyzer/init.lua
+++ /dev/null
@@ -1,65 +0,0 @@
-local server = require "nvim-lsp-installer.server"
-local process = require "nvim-lsp-installer.core.process"
-local platform = require "nvim-lsp-installer.core.platform"
-local functional = require "nvim-lsp-installer.core.functional"
-local github = require "nvim-lsp-installer.core.managers.github"
-local std = require "nvim-lsp-installer.core.managers.std"
-
-local coalesce, when = functional.coalesce, functional.when
-
-return function(name, root_dir)
- return server.Server:new {
- name = name,
- root_dir = root_dir,
- homepage = "https://rust-analyzer.github.io",
- languages = { "rust" },
- installer = function()
- local libc = platform.get_libc()
-
- local asset_file = coalesce(
- when(
- platform.is_mac,
- coalesce(
- when(platform.arch == "arm64", "rust-analyzer-aarch64-apple-darwin.gz"),
- when(platform.arch == "x64", "rust-analyzer-x86_64-apple-darwin.gz")
- )
- ),
- when(
- platform.is_linux,
- coalesce(
- when(
- libc == "glibc",
- coalesce(
- when(platform.arch == "arm64", "rust-analyzer-aarch64-unknown-linux-gnu.gz"),
- when(platform.arch == "x64", "rust-analyzer-x86_64-unknown-linux-gnu.gz")
- )
- ),
- when(
- libc == "musl",
- coalesce(when(platform.arch == "x64", "rust-analyzer-x86_64-unknown-linux-musl.gz"))
- )
- )
- ),
- when(
- platform.is_win,
- coalesce(
- when(platform.arch == "arm64", "rust-analyzer-aarch64-pc-windows-msvc.gz"),
- when(platform.arch == "x64", "rust-analyzer-x86_64-pc-windows-msvc.gz")
- )
- )
- )
-
- github.gunzip_release_file({
- repo = "rust-lang/rust-analyzer",
- asset_file = asset_file,
- out_file = platform.is_win and "rust-analyzer.exe" or "rust-analyzer",
- }).with_receipt()
- std.chmod("+x", { "rust-analyzer" })
- end,
- default_options = {
- cmd_env = {
- PATH = process.extend_path { root_dir },
- },
- },
- }
-end