neoclide / coc-python

Python extension for coc.nvim, fork of vscode-python
574 stars 51 forks source link

python.autoComplete.addBrackets not adding brackets #50

Closed esn89 closed 5 years ago

esn89 commented 5 years ago

I have set that value to true: https://pastebin.com/nvUap7CL

Now when I type into vim with: object. a list of suggested functions show up and I select it by hitting \<ENTER>, however, I do not see the autocompleted braces with the cursor in the middle.

I expect:

object.function(|)
chemzqm commented 5 years ago

python.autoComplete.addBrackets only works with jedi, but you have disabled jedi.

esn89 commented 5 years ago

aaah I see.

I disabled jedi so I can use only microsoft python language server. So it looks like I can only have one or the other :(

esn89 commented 5 years ago

With this being closed since it depends on Jedi, I was wondering if it was possible to get this incorporated:

https://github.com/microsoft/python-language-server/issues/868

On the languageserver option side, I see that this is implemented. That way, for those who do not choose to use Jedi, the could also get bracket completion.

chemzqm commented 5 years ago

I think you have to use beta version of mpls and find out the way to pass that option.

esn89 commented 5 years ago

Ah, okay. Thank you. I will try that.