You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The README homepage from coc.nvim shows a small demo for TypeScript where it automatically adds an include when a specific function is written and the import is missing.
I'm currently using coc.nvim ccls. Is there a way that if I write printf("Hello world!"); it will automatically add #include <stdio.h> to the top of the file? Would like to see this.
The text was updated successfully, but these errors were encountered:
kkoomen
changed the title
Auto-include directives for C just like TypeScript?
Auto-include directives for C?
Nov 25, 2019
I suppose this isn't implemented yet. In Vim, it would be quite helpful for <c-y> to insert the missing #include for the selected completion item. LSP supports the feature, but ccls doesn't seem to communicate the edit.
The README homepage from coc.nvim shows a small demo for TypeScript where it automatically adds an include when a specific function is written and the import is missing.
I'm currently using coc.nvim ccls. Is there a way that if I write
printf("Hello world!");
it will automatically add#include <stdio.h>
to the top of the file? Would like to see this.The text was updated successfully, but these errors were encountered: