aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2020-11-15 19:53:46 -0800
committerMichael Lingelbach <m.j.lbach@gmail.com>2020-11-15 19:53:46 -0800
commit67a1b25293642a34d984baa9839d7b0782c2c21c (patch)
treec0eac3041926fdcc0922b20fa2223c96c1fb20a2 /lua
parentMove pyright.lua to correct location under lspconfig (diff)
downloadnvim-lspconfig-67a1b25293642a34d984baa9839d7b0782c2c21c.tar
nvim-lspconfig-67a1b25293642a34d984baa9839d7b0782c2c21c.tar.gz
nvim-lspconfig-67a1b25293642a34d984baa9839d7b0782c2c21c.tar.bz2
nvim-lspconfig-67a1b25293642a34d984baa9839d7b0782c2c21c.tar.lz
nvim-lspconfig-67a1b25293642a34d984baa9839d7b0782c2c21c.tar.xz
nvim-lspconfig-67a1b25293642a34d984baa9839d7b0782c2c21c.tar.zst
nvim-lspconfig-67a1b25293642a34d984baa9839d7b0782c2c21c.zip
Add unzip dependency for mac and linux installation
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/pyls_ms.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/lspconfig/pyls_ms.lua b/lua/lspconfig/pyls_ms.lua
index a1a8b687..517aede1 100644
--- a/lua/lspconfig/pyls_ms.lua
+++ b/lua/lspconfig/pyls_ms.lua
@@ -36,6 +36,10 @@ local function make_installer()
error('Need ".NET Core" to install this.')
return
end
+ if not (util.has_bins("unzip")) and (vim.fn.has('mac') == 1 or vim.fn.has('unix') == 1) then
+ error('Need "unzip" to install this.')
+ return
+ end
local system
if vim.fn.has('mac') == 1 then