coc.vim autocomplete for c code example
Example 1: coc.vim autocomplete for c
Plug 'neoclide/coc.nvim', {'do': { -> coc#util#install()}}
Example 2: coc.vim autocomplete for c
{
"languageserver": {
"ccls": {
"command": "ccls",
"filetypes": [
"c",
"cpp",
"objc",
"objcpp"
],
"rootPatterns": [
".ccls",
"compile_commands.json",
".vim/",
".git/",
".hg/"
],
"initializationOptions": {
"cache": {
"directory": "/tmp/ccls"
}
}
}
}
}