aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp/pyls_ms.lua
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2020-01-01 07:15:50 +0900
committerJustin M. Keyes <justinkz@gmail.com>2019-12-31 14:15:50 -0800
commit10d3a9bde1d72bd3dfdbffbc317ef6b36ff9dd15 (patch)
tree7eef1897eafc3607927b2006715e4e56b3ecd843 /lua/nvim_lsp/pyls_ms.lua
parent[docgen] Update README.md (diff)
downloadnvim-lspconfig-10d3a9bde1d72bd3dfdbffbc317ef6b36ff9dd15.tar
nvim-lspconfig-10d3a9bde1d72bd3dfdbffbc317ef6b36ff9dd15.tar.gz
nvim-lspconfig-10d3a9bde1d72bd3dfdbffbc317ef6b36ff9dd15.tar.bz2
nvim-lspconfig-10d3a9bde1d72bd3dfdbffbc317ef6b36ff9dd15.tar.lz
nvim-lspconfig-10d3a9bde1d72bd3dfdbffbc317ef6b36ff9dd15.tar.xz
nvim-lspconfig-10d3a9bde1d72bd3dfdbffbc317ef6b36ff9dd15.tar.zst
nvim-lspconfig-10d3a9bde1d72bd3dfdbffbc317ef6b36ff9dd15.zip
CI: luacheck #86
Diffstat (limited to 'lua/nvim_lsp/pyls_ms.lua')
-rw-r--r--lua/nvim_lsp/pyls_ms.lua9
1 files changed, 5 insertions, 4 deletions
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();