From 10d3a9bde1d72bd3dfdbffbc317ef6b36ff9dd15 Mon Sep 17 00:00:00 2001 From: Hirokazu Hata Date: Wed, 1 Jan 2020 07:15:50 +0900 Subject: CI: luacheck #86 --- lua/nvim_lsp/pyls_ms.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lua/nvim_lsp/pyls_ms.lua') diff --git a/lua/nvim_lsp/pyls_ms.lua b/lua/nvim_lsp/pyls_ms.lua index 6bd42abb..34c2e4a1 100644 --- a/lua/nvim_lsp/pyls_ms.lua +++ b/lua/nvim_lsp/pyls_ms.lua @@ -41,12 +41,13 @@ local function make_installer() system = 'linux' elseif vim.fn.has('win32') == 1 then system = 'win' - else + else error('Unable to identify host operating system') end local url = string.format("https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-%s-x64.0.5.10.nupkg", string.lower(system)) - download_cmd = string.format('curl -fLo %s --create-dirs %s', install_info.install_dir .. "/pyls.nupkg", url) + local download_cmd = string.format('curl -fLo %s --create-dirs %s', install_info.install_dir .. "/pyls.nupkg", url) + local install_cmd = '' if vim.fn.has('mac') == 1 or vim.fn.has('unix') == 1 then install_cmd = "unzip " .. install_info.install_dir .. "/pyls.nupkg -d " .. install_info.install_dir @@ -96,9 +97,9 @@ skeleton[name] = { installer.configure(config) end; init_options = { - interpreter = + interpreter = { - properties= + properties= { InterpreterPath=vim.fn.exepath("python"); Version=get_python_version(); -- cgit v1.2.3-70-g09d2