配置文件
:CocConfig
~/.config/nvim/coc-settings.json
coc-settings.json
{
"languageserver": {
"ccls": {
"command": "ccls",
"filetypes": ["c", "cpp","hpp","h", "cuda", "objc", "objcpp"],
"rootPatterns": [".ccls",".git/"],
"initializationOptions": {
"compilationDatabaseDirectory":"build",
"cache": {
"directory": ".ccls-cache"
},
"client": {
"snippetSupport": true
}
}
}
}
}
.ccls
%compile_commands.json
%h -x
%h c++-header
%hpp
标签:ccls,hpp,cache,json,coc,nvim
From: https://www.cnblogs.com/Searchor/p/17277231.html