diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2019-12-21 19:40:43 -0800 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2019-12-22 04:40:43 +0100 |
| commit | ff779283e44aab7344b370f2a41fcab55ee02cbd (patch) | |
| tree | a0effbc739faae59bce4fb0654b2699ed6134e30 /lua/nvim_lsp | |
| parent | [docgen] Update README.md (diff) | |
| download | nvim-lspconfig-ff779283e44aab7344b370f2a41fcab55ee02cbd.tar nvim-lspconfig-ff779283e44aab7344b370f2a41fcab55ee02cbd.tar.gz nvim-lspconfig-ff779283e44aab7344b370f2a41fcab55ee02cbd.tar.bz2 nvim-lspconfig-ff779283e44aab7344b370f2a41fcab55ee02cbd.tar.lz nvim-lspconfig-ff779283e44aab7344b370f2a41fcab55ee02cbd.tar.xz nvim-lspconfig-ff779283e44aab7344b370f2a41fcab55ee02cbd.tar.zst nvim-lspconfig-ff779283e44aab7344b370f2a41fcab55ee02cbd.zip | |
pyls_ms: add documentation, fix os check #78
Diffstat (limited to 'lua/nvim_lsp')
| -rw-r--r-- | lua/nvim_lsp/pyls_ms.lua | 16 |
1 files changed, 13 insertions, 3 deletions
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"; |
