aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/zls
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-10-11 21:07:11 +0200
committerWilliam Boman <william@redwill.se>2021-10-11 21:07:15 +0200
commit8dfdbcbe843355953812b793d0df336cc86a1f7b (patch)
tree0d325adad9bcb301e562bed36d34c27e4d6d5336 /lua/nvim-lsp-installer/servers/zls
parentREADME: mention relaxed requirements (diff)
downloadmason-8dfdbcbe843355953812b793d0df336cc86a1f7b.tar
mason-8dfdbcbe843355953812b793d0df336cc86a1f7b.tar.gz
mason-8dfdbcbe843355953812b793d0df336cc86a1f7b.tar.bz2
mason-8dfdbcbe843355953812b793d0df336cc86a1f7b.tar.lz
mason-8dfdbcbe843355953812b793d0df336cc86a1f7b.tar.xz
mason-8dfdbcbe843355953812b793d0df336cc86a1f7b.tar.zst
mason-8dfdbcbe843355953812b793d0df336cc86a1f7b.zip
zls: check github release file not nil
For better error message.
Diffstat (limited to 'lua/nvim-lsp-installer/servers/zls')
-rw-r--r--lua/nvim-lsp-installer/servers/zls/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/servers/zls/init.lua b/lua/nvim-lsp-installer/servers/zls/init.lua
index e6cd5928..71e0a524 100644
--- a/lua/nvim-lsp-installer/servers/zls/init.lua
+++ b/lua/nvim-lsp-installer/servers/zls/init.lua
@@ -22,7 +22,7 @@ return function(name, root_dir)
root_dir = root_dir,
homepage = "https://github.com/zigtools/zls",
installer = {
- context.github_release_file("zigtools/zls", ("%s.tar.xz"):format(archive_name)),
+ context.github_release_file("zigtools/zls", archive_name and ("%s.tar.xz"):format(archive_name)),
context.capture(function(ctx)
return std.untarxz_remote(ctx.github_release_file)
end),