Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document configuration options #361

Open
languitar opened this issue May 28, 2018 · 5 comments
Open

Document configuration options #361

languitar opened this issue May 28, 2018 · 5 comments

Comments

@languitar
Copy link
Contributor

If you are not using vscode, then there is no documentation on the available configuration options. I only accidentally found it by browsing the source code of the vscode plugin. Could a markdown file be added with the options or at least a reference to the json file from the plugin?

@FichteFoll
Copy link

This would be quite useful. I, too, had to go through the vscode plugin code via #139 to find out how to enable plugins that I already have running using a different editor plugin.

@martsa1
Copy link

martsa1 commented Feb 7, 2019

Any update on this? Struggling to find even basic samples for what and how to configure things.

@dbarrosop
Copy link

I agree, this is a bit frustrating. The point of language servers is to be IDE agnostic.

@tsoernes
Copy link

tsoernes commented Mar 27, 2019

See https://raw.githubusercontent.com/palantir/python-language-server/develop/vscode-client/package.json
also, Python LSP mode for spacemacs, which uses pyls, outputs this default config:

:plugins.jedi_completion.enabled t
:plugins.jedi_definition.follow_imports t
:configurationSources ["pycodestyle"]
:plugins.jedi_completion.enabled t 
:plugins.jedi_definition.enabled t 
:plugins.jedi_definition.follow_imports nil 
:plugins.jedi_definition.follow_builtin_imports nil 
:plugins.jedi_hover.enabled t 
:plugins.jedi_references.enabled t 
:plugins.jedi_signature_help.enabled nil 
:plugins.jedi_symbols.enabled nil 
:plugins.jedi_symbols.all_scopes t 
:plugins.mccabe.enabled nil 
:plugins.mccabe.threshold 15 
:plugins.preload.enabled t 
:plugins.preload.modules nil 
:plugins.pycodestyle.enabled t 
:plugins.pycodestyle.exclude nil 
:plugins.pycodestyle.filename nil 
:plugins.pycodestyle.select nil 
:plugins.pycodestyle.ignore nil 
:plugins.pycodestyle.hangClosing nil 
:plugins.pycodestyle.maxLineLength nil 
:plugins.pydocstyle.enabled nil 
:plugins.pydocstyle.convention nil 
:plugins.pydocstyle.addIgnore nil 
:plugins.pydocstyle.addSelect nil 
:plugins.pydocstyle.ignore nil 
:plugins.pydocstyle.select nil 
:plugins.pydocstyle.match "(?!test_).*.py" 
:plugins.pydocstyle.matchDir nil 
:plugins.pyflakes.enabled t 
:plugins.rope_completion.enabled t 
:plugins.yapf.enabled t
:rope.extensionModules nil
:rope.ropeFolder nil

@martsa1
Copy link

martsa1 commented Mar 28, 2019

For reference in case anyone else ends up here, I've managed to get the following to work to some extent for me:

{
  "pyls": {
    "configurationSources": ["flake8"],
    "plugins": {
      "flake8": {
        "enabled": true
      },
      "mypy": {
          "enabled": true
      },
      "pycodestyle": {
        "enabled": false
      },
      "pyflakes": {
        "enabled": true
      },
      "pylint": {
          "enabled": true
      }
    }
  }
}

The above lives in .vim/settings.json in my project root and is successfully picked up by my language server client (LanguageClient-neovim) and passed into pyls, but I have no idea whether I can provide more comprehensive settings to any of the various plugins.

Currently I don't seem to get mypy diagnostics back either, so there's still more to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants