-
-
Notifications
You must be signed in to change notification settings - Fork 897
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
Add mypy plugin configuration in lsp-pyls #1317
Conversation
Looks good to me! @mpanarin willing to take a look? |
I don't think this is a good idea. This is a 3rd party plug-in which is obviously not guaranteed to be installed with pyls (although a lot of
But this rises a different question. @yyoncho is there a way to add parameters to ls dynamically? |
Can you elaborate?
You could have dir local with |
Take the situation into consideration, I change my mind and think this change confuse users. I'll close this PR if the discussion is finished. |
Just want to mention that if the plugin is present these properties could be useful to disable it per project. In general it is up to you(the pyls users) to decide what make sense. |
You have to install pyls with all of its plugins in each environment anyway, so I don't think it is really usefull here.
That is a good idea, thanks! |
You could set variables as well. The list is useful if you want to alter the set of variables to using dir locals. |
I understand that. I mean that list manipulations are unsafe in dir-locals, while setting vars is not. And it is a bit more strightforward. |
@mpanarin can you merge/reject this PR as the owner of lsp-pyls.el? |
@mpanarin thank you. |
By seting |
To have a bit of documentation here: after having (lsp-register-custom-settings '(("pyls.plugins.pyls_mypy.enabled" t t)
("pyls.plugins.pyls_mypy.live_mode" nil t)
("pylsp.plugins.pylsp_mypy.enabled" t t)
("pylsp.plugins.pylsp_mypy.live_mode" nil t))) …and if your python directory is not in the project root (for example, if it's located at |
See https://github.com/tomv564/pyls-mypy#configuration