diff options
| author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-11-18 10:20:01 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-18 10:20:01 +0900 |
| commit | 4f19567fb76438d39ed196ae5b4e06b749e75e16 (patch) | |
| tree | c0eac3041926fdcc0922b20fa2223c96c1fb20a2 /lua | |
| parent | Merge pull request #404 from mjlbach/fix-pyright-languageserver (diff) | |
| parent | Add unzip dependency for mac and linux installation (diff) | |
| download | nvim-lspconfig-4f19567fb76438d39ed196ae5b4e06b749e75e16.tar nvim-lspconfig-4f19567fb76438d39ed196ae5b4e06b749e75e16.tar.gz nvim-lspconfig-4f19567fb76438d39ed196ae5b4e06b749e75e16.tar.bz2 nvim-lspconfig-4f19567fb76438d39ed196ae5b4e06b749e75e16.tar.lz nvim-lspconfig-4f19567fb76438d39ed196ae5b4e06b749e75e16.tar.xz nvim-lspconfig-4f19567fb76438d39ed196ae5b4e06b749e75e16.tar.zst nvim-lspconfig-4f19567fb76438d39ed196ae5b4e06b749e75e16.zip | |
Merge pull request #405 from mjlbach/feature/specify-unzip-dependency
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/pyls_ms.lua | 4 |
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 |
