Skip to content

language servers configuration file #565

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

Closed
rebelot opened this issue Aug 13, 2018 · 5 comments
Closed

language servers configuration file #565

rebelot opened this issue Aug 13, 2018 · 5 comments

Comments

@rebelot
Copy link

rebelot commented Aug 13, 2018

Is your feature request related to a problem? Please describe.

It is not clear whether it is possible to pass additional options to language servers which usually expect them in the json format as in VSCode.

Describe the solution you'd like

Add a configuration file nvim-language-server-config.json with the same format of VSCode that is reachable by the language servers.

@Anrock
Copy link

Anrock commented Aug 13, 2018

Are you talking about g:LanguageClient_settingsPath?

@rebelot
Copy link
Author

rebelot commented Aug 13, 2018

yes! Sorry for such a stupid question, I've read the docs thoroughly but for some reason I thought that it only applied to the diagnostics. I've set up something like this:

{
    "pyls.plugins.preload.enabled": true,
    "pyls.plugins.preload.modules": [
        "numpy",
        "pandas"
    ],
    "pyls.plugins.pydocstyle.enabled": true
}

@autozimu
Copy link
Owner

Your example setting might not work (although I'm not 100% sure). If not work, try unroll the json path, i.e.,

{
    "pyls": {
         "plugins": {
          ....
        }
    }
}

@rebelot
Copy link
Author

rebelot commented Aug 13, 2018

indeed it is not working. I tried:

{
    "pyls": {
        "plugins": {
            "preload": {
                "enabled": true,
                "modules": [
                    "numpy",
                    "pandas"
                ]
            },
            "pydocstyle": {
                "enabled": true
            },
            "jedi_completion":{
                "enabled": false
            }
        }
    }
}

but I am still getting completions.

@autozimu
Copy link
Owner

Check this #448 (comment)

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

3 participants