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

Add function objects to completions #244

Closed
llan-ml opened this issue Jul 13, 2022 · 2 comments · Fixed by #246
Closed

Add function objects to completions #244

llan-ml opened this issue Jul 13, 2022 · 2 comments · Fixed by #246
Milestone

Comments

@llan-ml
Copy link
Contributor

llan-ml commented Jul 13, 2022

In some cases, we might only want to use the name of a function. However, currently the function is always completed with parenthesis and parameters. An example is as follows:
image

Can we add an option like pylsp.plugins.jedi_completion.include_class_objects to add function objects as a separate completion item?

@ccordoba12
Copy link
Member

Hey @llan-ml, thanks for reporting. Unfortunately, we're don't have much free time to add an option for this. But you're welcome to send us a pull request that implements it.

Otherwise, I suggest to use the option pylsp.plugins.jedi_completion.include_params to disable parameters in completions.

@llan-ml
Copy link
Contributor Author

llan-ml commented Jul 14, 2022

Hi @ccordoba12, I create a PR #246 to add this feature.

@ccordoba12 ccordoba12 changed the title [Feature Request] Add function object in the completion list Add function objects to completions Aug 27, 2022
@ccordoba12 ccordoba12 added this to the v1.6.0 milestone Aug 27, 2022
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

Successfully merging a pull request may close this issue.

2 participants