Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 847
Eugene Grechko Avatar asked Jun 17 '20 18:06

Eugene Grechko


Video Answer


3 Answers

autocmd FileType markdown let b:coc_suggest_disable = 1

This will disable completion suggestions only.

like image 88
fannheyward Avatar answered Oct 17 '22 04:10

fannheyward


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

like image 31
Hayden Avatar answered Oct 17 '22 06:10

Hayden


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

like image 2
Remicaster Avatar answered Oct 17 '22 06:10

Remicaster