diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-07-14 23:36:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-14 23:36:49 -0700 |
| commit | 0429852c1713c44a34981ffe25b51a08eafe840b (patch) | |
| tree | 988aff34d47087751ed7e435efeb8e5cb92f23c6 /lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-0429852c1713c44a34981ffe25b51a08eafe840b.tar nvim-lspconfig-0429852c1713c44a34981ffe25b51a08eafe840b.tar.gz nvim-lspconfig-0429852c1713c44a34981ffe25b51a08eafe840b.tar.bz2 nvim-lspconfig-0429852c1713c44a34981ffe25b51a08eafe840b.tar.lz nvim-lspconfig-0429852c1713c44a34981ffe25b51a08eafe840b.tar.xz nvim-lspconfig-0429852c1713c44a34981ffe25b51a08eafe840b.tar.zst nvim-lspconfig-0429852c1713c44a34981ffe25b51a08eafe840b.zip | |
chore: remove pyls and pyls_ms (#1074)
* pyls is unmaintained and has been continued as a community fork, pylsp
* pyls_ms has been abandoned by microsoft in favor of the proprietary
pylance/the less featureful (but open-source) pyright
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/pyls.lua | 26 | ||||
| -rw-r--r-- | lua/lspconfig/pyls_ms.lua | 70 |
2 files changed, 0 insertions, 96 deletions
diff --git a/lua/lspconfig/pyls.lua b/lua/lspconfig/pyls.lua deleted file mode 100644 index 3523b4e7..00000000 --- a/lua/lspconfig/pyls.lua +++ /dev/null @@ -1,26 +0,0 @@ -local configs = require 'lspconfig/configs' - -configs.pyls = { - default_config = { - cmd = { 'pyls' }, - filetypes = { 'python' }, - root_dir = function(fname) - return vim.fn.getcwd() - end, - }, - docs = { - package_json = 'https://raw.githubusercontent.com/palantir/python-language-server/develop/vscode-client/package.json', - description = [[ -https://github.com/palantir/python-language-server - -`python-language-server`, a language server for Python. - -The language server can be installed via `pipx install 'python-language-server[all]'`. - - ]], - default_config = { - root_dir = "vim's starting directory", - }, - }, -} --- vim:et ts=2 sw=2 diff --git a/lua/lspconfig/pyls_ms.lua b/lua/lspconfig/pyls_ms.lua deleted file mode 100644 index 88e48666..00000000 --- a/lua/lspconfig/pyls_ms.lua +++ /dev/null @@ -1,70 +0,0 @@ -local configs = require 'lspconfig/configs' -local util = require 'lspconfig/util' - -local name = 'pyls_ms' - -configs[name] = { - - default_config = { - filetypes = { 'python' }, - root_dir = function(fname) - return util.find_git_ancestor(fname) or vim.loop.os_homedir() - end, - settings = { - python = { - analysis = { - errors = {}, - info = {}, - disabled = {}, - }, - }, - }, - init_options = { - interpreter = { - properties = { - InterpreterPath = '', - Version = '', - }, - }, - displayOptions = {}, - analysisUpdates = true, - asyncStartup = true, - }, - }, - 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 -``` - -`python-language-server` can be installed via [build](https://github.com/microsoft/python-language-server/blob/master/CONTRIBUTING.md#setup). - -Set cmd to point to `Microsoft.Python.languageServer.dll`. - -```lua -cmd = { "dotnet", "exec", "path/to/Microsoft.Python.languageServer.dll" }; -``` - -If the `python` interpreter is not in your PATH environment variable, set the `InterpreterPath` and `Version` properties accordingly. - -```lua -InterpreterPath = "path/to/python", -Version = "3.8" -``` - -This server accepts configuration via the `settings` key. - - ]], - default_config = { - root_dir = "vim's starting directory", - }, - }, -} - --- vim:et ts=2 sw=2 |
