This installs the python server provided by Palantir.
Microsoft also provide the C# server which requires the .net runtime.
pipenv install 'python-language-server[all]'
pipenv --venv | pbcopy
I reccomend installing this in it's own environment. This example uses pipenv
.
See https://github.com/tomv564/LSP
Select Package Control: Install Package
Select LSP
The most important configuration is to point to the pyls
executable wherver you installed it, by setting command
.
Preferences: LSP Settings
An example config:
{
"clients": {
"pyls":
{
"enabled": true,
"command": [
"/path/to/virtualenvs/sublime-text-python-lsp-NW5Vqshn/bin/pyls"
],
"settings": {
"pyls": {
"configurationSources": ["flake8"],
"plugins": {
"jedi_definition": {
"follow_imports": true
}
}
}
},
"scopes": ["source.python"],
"syntaxes": [
"Packages/Python/Python.sublime-syntax",
"Packages/Djaneiro/Syntaxes/Python Django.tmLanguage"
],
"languageId": "python"
}
}
}