From ff779283e44aab7344b370f2a41fcab55ee02cbd Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Sat, 21 Dec 2019 19:40:43 -0800 Subject: pyls_ms: add documentation, fix os check #78 --- lua/nvim_lsp/pyls_ms.lua | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/nvim_lsp/pyls_ms.lua b/lua/nvim_lsp/pyls_ms.lua index 3625d803..6bd42abb 100644 --- a/lua/nvim_lsp/pyls_ms.lua +++ b/lua/nvim_lsp/pyls_ms.lua @@ -45,12 +45,12 @@ local function make_installer() 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.4.114.nupkg", string.lower(system)) + 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) - if vim.fn.has('mac') or vim.fn.has('unix') then + 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 - elseif vim.fn.has('win32') then + elseif vim.fn.has('win32') == 1 then install_cmd = "Expand-Archive -Force " .. install_info.install_dir .. "/pyls.nupkg -d " .. install_info.install_dir end @@ -114,7 +114,17 @@ skeleton[name] = { docs = { description = [[ https://github.com/Microsoft/python-language-server + `python-language-server`, a language server for Python. + +Requires [.NET Core](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script) to run. On Linux or macOS: + +```bash +curl -L https://dot.net/v1/dotnet-install.sh | sh +``` + +This server accepts configuration via the `settings` key. + ]]; default_config = { root_dir = "vim's starting directory"; -- cgit v1.2.3-70-g09d2