diff options
| author | Github Actions <actions@github> | 2019-11-29 08:08:06 +0000 |
|---|---|---|
| committer | Github Actions <actions@github> | 2019-11-29 08:08:06 +0000 |
| commit | aa187f1afb5ee1c7cf55089f8c8dc7da44c931c6 (patch) | |
| tree | a8fa0f960953588c471b6dfa3b7c9601911250fe | |
| parent | pyls_ms: Microsoft Python Language Server #57 (diff) | |
| download | nvim-lspconfig-aa187f1afb5ee1c7cf55089f8c8dc7da44c931c6.tar nvim-lspconfig-aa187f1afb5ee1c7cf55089f8c8dc7da44c931c6.tar.gz nvim-lspconfig-aa187f1afb5ee1c7cf55089f8c8dc7da44c931c6.tar.bz2 nvim-lspconfig-aa187f1afb5ee1c7cf55089f8c8dc7da44c931c6.tar.lz nvim-lspconfig-aa187f1afb5ee1c7cf55089f8c8dc7da44c931c6.tar.xz nvim-lspconfig-aa187f1afb5ee1c7cf55089f8c8dc7da44c931c6.tar.zst nvim-lspconfig-aa187f1afb5ee1c7cf55089f8c8dc7da44c931c6.zip | |
[docgen] Update README.md
skip-checks: true
| -rw-r--r-- | README.md | 40 |
1 files changed, 23 insertions, 17 deletions
@@ -1439,33 +1439,39 @@ nvim_lsp#setup("pyls", {config}) ## pyls_ms -https://github.com/Microsoft/python-language-server - -`Microsoft Language Server for Python `, a language server for Python. + 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. +Can be installed in neovim with `:LspInstall pyls_ms` ```lua nvim_lsp.pyls_ms.setup({config}) +nvim_lsp#setup("pyls_ms", {config}) Default Values: - cmd = { "dotnet exec /path/to/Microsoft.Python.LanguageServer.dll" } filetypes = { "python" } - log_level = lsp.protocol.MessageType.Warning - root_dir = util.find_git_ancestor(fname) or vim.loop.os_homedir() + init_options = { + analysisUpdates = true, + asyncStartup = true, + displayOptions = {}, + interpreter = { + properties = { + InterpreterPath = "/usr/bin/python", + Version = "2.7" + } + } + } + log_level = 2 + on_new_config = <function 1> + root_dir = vim's starting directory settings = { python = { analysis = { - errors = {}; - info = {}; - disabled = {}; - }; + disabled = {}, + errors = {}, + info = {} + } + } } ``` |
