0

I am using vim with coc vim for the autocompletion. Coc is just great with python, java etc, and it is really easy to install and use.

However while coding in C, i noticed that sometimes coc-clangd adds a header on its own at the beginning (for example #include <cstddef.h> ). Because of that i have problems compiling ... I am 80% sure that the problem is from coc-clangd.

Did someone ever had that problem before ? Can you please tell me how to prevent coc from adding headers on its own ?

Thanks is advance

romainl
  • 186,200
  • 21
  • 280
  • 313
Wil123
  • 49
  • 7

1 Answers1

1

The header text is came from clangd, not coc-clangd. Some completion items from clangd came with a textEdit that includes a header text, coc.nvim applied the textEdit.

fannheyward
  • 18,599
  • 12
  • 71
  • 109