20

I am trying to setup Neovim with Coc for writing markdown. I have Coc working with javascript and other file types.

What I am trying to do is disable the autocomplete suggestions only for markdown files. I have found that if I run :CocDisable that more or less gets the job done but I would like to keep markdown-lint enabled.

Is there a way to disable autocomplete suggestions in Coc only for markdown files?

A picture of the autocomplete suggestions popping up in markdown

Eugene Grechko
  • 303
  • 2
  • 6

3 Answers3

22

autocmd FileType markdown let b:coc_suggest_disable = 1

This will disable completion suggestions only.

fannheyward
  • 18,599
  • 12
  • 71
  • 109
5

A bit late here, but I believe the best method is to edit CocConfig file by putting "suggest.autoTrigger": "none".

This more or less does the job OP is asking for.

Edit: typo, see reply 1

Remicaster
  • 226
  • 4
  • 8
2

You could write something like autocmd FileType markdown :call CocDisable() in your .vimrc

Hayden
  • 327
  • 3
  • 8