Search code examples
vimmarkdownneovimcoc.nvim

Coc.nvim how to disable auto complete suggestions in markdown files?


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


Solution

  • autocmd FileType markdown let b:coc_suggest_disable = 1

    This will disable completion suggestions only.