From 048dfac4ce756daaf24016c462401090c9ac2cf1 Mon Sep 17 00:00:00 2001 From: William Boman Date: Tue, 21 Dec 2021 20:17:44 +0100 Subject: fix(zls): correct linux i386 archive name --- lua/nvim-lsp-installer/servers/zls/init.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'lua') 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), -- cgit v1.2.3-70-g09d2