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

Missing options that can be set on the client? #51

Open
doolio opened this issue Nov 2, 2023 · 2 comments
Open

Missing options that can be set on the client? #51

doolio opened this issue Nov 2, 2023 · 2 comments

Comments

@doolio
Copy link

doolio commented Nov 2, 2023

def pylsp_settings():
"""Configuration options that can be set on the client."""
return {
"plugins": {
"black": {
"enabled": True,
"line_length": 88,
"preview": False,
"cache_config": False,
},
"yapf": {"enabled": False},
"autopep8": {"enabled": False},
}
}

Should skip_magic_trailing_comma and skip_string_normalization be included here?

@haplo
Copy link
Collaborator

haplo commented Nov 6, 2023

They are included in

string_normalization=not config["skip_string_normalization"],
magic_trailing_comma=not config["skip_magic_trailing_comma"],
when black is actually called. I don't see a benefit to have it in two places, if anything we maybe should remove other things from pylsp_settings, like line_length and preview.

@doolio
Copy link
Author

doolio commented Nov 6, 2023

if anything we maybe should remove other things from pylsp_settings, like line_length and preview.

Whatever you feel is best though having them all defined under pylsp_settings makes it obvious (to me as a beginner) what settings are available. (I'm thinking in respect of keeping this gist up to date.) The various plugin implementations don't seem to be standardised which is unfortunate.

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

2 participants