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

How to disable argument autofill? #154

Closed
tom-james-watson opened this issue Nov 8, 2018 · 3 comments
Closed

How to disable argument autofill? #154

tom-james-watson opened this issue Nov 8, 2018 · 3 comments

Comments

@tom-james-watson
Copy link

Some completions automatically insert the method signature with placeholder variables, like this:

screenshot 2018-11-08 at 16 39 15

I don't like this functionality and would like to turn it off. I can't see it mentioned in the docs anywhere and can't see any settings that look like they would disable it.

Is there a way to disable this?

Thanks!

@chemzqm
Copy link
Member

chemzqm commented Nov 9, 2018

It's placeholder of snippet, when you type any character the placeholder is removed.
You can disable snippet for function call of tsserver by:

  "typescript.suggest.completeFunctionCalls": false,
  "javascript.suggest.completeFunctionCalls": false,

Same as VSCode.

@chemzqm chemzqm closed this as completed Nov 9, 2018
@tom-james-watson
Copy link
Author

Thanks! FYI - I (and I presume lots of other vim users) have never used VSCode, so I don't think you should assume that users will know how things work just because it's like that in VSCode.

I think it would be really useful if all of the possible options were listed somewhere with explanations of what they mean.

@chemzqm
Copy link
Member

chemzqm commented Nov 9, 2018

It's documented
https://github.com/neoclide/coc.nvim/wiki/Using-configuration-file#extension-configuration
https://github.com/neoclide/coc-tsserver#configuration-options

Have priview in completeopt you can have the desciption in preview window.
screen shot 2018-11-09 at 7 45 33 pm

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