diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/zls/init.lua | 11 |
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), |
