Coc.nvim: How to disable argument autofill?

Created on 8 Nov 2018  ·  3Comments  ·  Source: neoclide/coc.nvim

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!

Most helpful comment

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.

All 3 comments

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.

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.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aareman picture aareman  ·  3Comments

skylite21 picture skylite21  ·  3Comments

zhou13 picture zhou13  ·  3Comments

lanox picture lanox  ·  3Comments

cvlmtg picture cvlmtg  ·  3Comments