diff options
| author | JINNOUCHI Yasushi <d+github@delphinus.dev> | 2019-12-17 07:53:01 +0900 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2019-12-16 14:53:01 -0800 |
| commit | 32c73768cad151c80a33b7d9bcd3cca5692dc31d (patch) | |
| tree | 994af9f9f884cb878384636f92aa3c7ff30a1316 /lua/nvim_lsp | |
| parent | [docgen] Update README.md (diff) | |
| download | nvim-lspconfig-32c73768cad151c80a33b7d9bcd3cca5692dc31d.tar nvim-lspconfig-32c73768cad151c80a33b7d9bcd3cca5692dc31d.tar.gz nvim-lspconfig-32c73768cad151c80a33b7d9bcd3cca5692dc31d.tar.bz2 nvim-lspconfig-32c73768cad151c80a33b7d9bcd3cca5692dc31d.tar.lz nvim-lspconfig-32c73768cad151c80a33b7d9bcd3cca5692dc31d.tar.xz nvim-lspconfig-32c73768cad151c80a33b7d9bcd3cca5692dc31d.tar.zst nvim-lspconfig-32c73768cad151c80a33b7d9bcd3cca5692dc31d.zip | |
pyls_ms: Fix OS detection #72
vim.fn.has('xxx') returns 1 or 0 that both are true in lua.
Diffstat (limited to 'lua/nvim_lsp')
| -rw-r--r-- | lua/nvim_lsp/pyls_ms.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/nvim_lsp/pyls_ms.lua b/lua/nvim_lsp/pyls_ms.lua index 3659b47e..3625d803 100644 --- a/lua/nvim_lsp/pyls_ms.lua +++ b/lua/nvim_lsp/pyls_ms.lua @@ -35,11 +35,11 @@ local function make_installer() end local system - if vim.fn.has('mac') then + if vim.fn.has('mac') == 1 then system = 'osx' - elseif vim.fn.has('unix') then + elseif vim.fn.has('unix') == 1 then system = 'linux' - elseif vim.fn.has('win32') then + elseif vim.fn.has('win32') == 1 then system = 'win' else error('Unable to identify host operating system') |
