aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-12-21 20:17:44 +0100
committerWilliam Boman <william@redwill.se>2021-12-21 20:17:44 +0100
commit048dfac4ce756daaf24016c462401090c9ac2cf1 (patch)
treed83488d6bc86b563db632e0b71a363cc1f5a8c6c /lua
parentfix(zls): install x86_64-macos on arm as well (diff)
downloadmason-048dfac4ce756daaf24016c462401090c9ac2cf1.tar
mason-048dfac4ce756daaf24016c462401090c9ac2cf1.tar.gz
mason-048dfac4ce756daaf24016c462401090c9ac2cf1.tar.bz2
mason-048dfac4ce756daaf24016c462401090c9ac2cf1.tar.lz
mason-048dfac4ce756daaf24016c462401090c9ac2cf1.tar.xz
mason-048dfac4ce756daaf24016c462401090c9ac2cf1.tar.zst
mason-048dfac4ce756daaf24016c462401090c9ac2cf1.zip
fix(zls): correct linux i386 archive name
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/servers/zls/init.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/lua/nvim-lsp-installer/servers/zls/init.lua b/lua/nvim-lsp-installer/servers/zls/init.lua
index e6a84d5f..189030c0 100644
--- a/lua/nvim-lsp-installer/servers/zls/init.lua
+++ b/lua/nvim-lsp-installer/servers/zls/init.lua
@@ -9,12 +9,15 @@ local coalesce, when = Data.coalesce, Data.when
return function(name, root_dir)
local archive_name = coalesce(
- when(platform.is_mac, "x86_64-macos"),
+ when(platform.is_mac, "x86_64-macos.tar.xz"),
when(
platform.is_linux,
- coalesce(when(platform.arch == "x64", "x86_64-linux"), when(platform.arch == "x86", "i386-linux.tar.zx"))
+ coalesce(
+ when(platform.arch == "x64", "x86_64-linux.tar.xz"),
+ when(platform.arch == "x86", "i386-linux.tar.xz")
+ )
),
- when(platform.is_win and platform.arch == "x64", "x86_64-windows")
+ when(platform.is_win and platform.arch == "x64", "x86_64-windows.tar.xz")
)
return server.Server:new {
@@ -23,7 +26,7 @@ return function(name, root_dir)
homepage = "https://github.com/zigtools/zls",
languages = { "zig" },
installer = {
- context.use_github_release_file("zigtools/zls", archive_name and ("%s.tar.xz"):format(archive_name)),
+ context.use_github_release_file("zigtools/zls", archive_name),
context.capture(function(ctx)
return std.untarxz_remote(ctx.github_release_file)
end),