[Question] LSP client server configuration
Hello, thank you very much for all the recent work on enabling LSP.
I have been playing around to see if Kate can potentially help me to finally move over from VSCode and things seem to work pretty well for now which is awesome.
However I am aware that there are still limitations with Kate's LSP implementation so I wanted to ask a few questions in case there are any workarounds.
After reading the LSP status blog post announcement and this reddit thread that added some more clarity I managed to setup a test file to try out using the Python Language Server Client as follows:
{
"servers": {
"python": {
"command": ["/home/jbrookes/.pyenv/versions/3.8.1/bin/python", "-m", "pyls", "--check-parent-process"],
"url": "https://github.com/palantir/python-language-server",
"highlightingModeRegex": "^Python$"
}
}
}
Now, this is all fine and dandy but how about configuring the actual client (pyls in this case)? Is that supported in any way shape or form? For example a recent merge of pyls has disabled pylint support which I would like to turn back on. IS there a way of achieving this?
Only a handful of options seem to be supported for now I am not sure if there is another way of customizing the server. A quick search on the pyls repo reveals that settings can be enabled as follows:
"pyls": {
"enable": true,
"trace": {
"server": "verbose"
},
"commandPath": "",
"configurationSources": [
"pycodestyle"
],
"plugins": {
"jedi_completion": {
"enabled": true
},
"jedi_hover": {
"enabled": true
},
"jedi_references": {
"enabled": true
},
"jedi_signature_help": {
"enabled": true
},
"jedi_symbols": {
"enabled": true,
"all_scopes": true
},
"mccabe": {
"enabled": true,
"threshold": 15
},
"preload": {
"enabled": true
},
"pycodestyle": {
"enabled": true
},
"pydocstyle": {
"enabled": false,
"match": "(?!test_).*\\.py",
"matchDir": "[^\\.].*"
},
"pyflakes": {
"enabled": true
},
"rope_completion": {
"enabled": true
},
"yapf": {
"enabled": true
},
"pylint": {
"enabled": true
}
}
}
}
Any further insight about the status of whether or not such customizations are possible would be highly appreciated!
Thank you.